Changed subdirectory for external project binary files
@@ -40,7 +40,7 @@ add_subdirectory(cmake)
# Find or install Imath
#######################################
# Check to see if Imath is installed outside of the current build directory.
-set(CMAKE_IGNORE_PATH "${CMAKE_CURRENT_BINARY_DIR}/build/_deps/imath-src/config/")
+set(CMAKE_IGNORE_PATH "${CMAKE_CURRENT_BINARY_DIR}/_deps/imath-src/config/")
find_package(Imath QUIET)
set(CMAKE_IGNORE_PATH "")
@@ -65,10 +65,12 @@ if(NOT Imath_FOUND)
-D PYTHON=${PYTHON}
# Python bindings will be generated for Imath if PYTHON=ON
)
+
FetchContent_GetProperties(Imath)
if(NOT Imath_POPULATED)
FetchContent_Populate(Imath)
- add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/_deps/imath-src)
+ add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/_deps/imath-src
+ ${CMAKE_CURRENT_BINARY_DIR}/_deps/imath-src)
endif()
endif()
