Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <[email protected]>
  • Loading branch information
lgritz committed Mar 29, 2024
1 parent b0d8313 commit ad71003
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cmake/build_Imath.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ get_target_property(IMATH_INCLUDES Imath::Imath INTERFACE_INCLUDE_DIRECTORIES)
# downloaded Imath.
message (STATUS "In build_Imath.cmake, Imath_INCLUDES=${IMATH_INCLUDES}")
set (IMATH_INCLUDES "${Imath_SOURCE_DIR}/src/Imath"
"${Imath_BINARY_DIR}/src/config")
"${Imath_BINARY_DIR}/config")
message (STATUS "Resetting to Imath_INCLUDES=${IMATH_INCLUDES}")

# Need a link so that we can #include <Imath/blah.h> because in the Imath
# source, the headers are not in an Imath subdirectory.
file (CREATE_LINK ${Imath_SOURCE_DIR}/src/Imath ${Imath_SOURCE_DIR}/src/Imath/Imath SYMBOLIC)

proj_include_directories_prepend ("${Imath_SOURCE_DIR}/src/Imath"
"${Imath_BINARY_DIR}/src/config")
"${Imath_BINARY_DIR}/config")
# set (${PROJECT_NAME}_include_directories "${Imath_SOURCE_DIR}/src/Imath;${Imath_BINARY_DIR}/src/config;${${PROJECT_NAME}_include_directories}")
message ("After build_imath, now ${PROJECT_NAME}_include_directories = ${${PROJECT_NAME}_include_directories}}")
3 changes: 2 additions & 1 deletion src/cmake/fancy_add_executable.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ macro (fancy_add_executable)
check_is_enabled (${_target_NAME} _target_NAME_enabled)
if (_target_NAME_enabled)
add_executable (${_target_NAME} ${_target_SRC})
message(STATUS "in fancy_add_exec ${PROJECT_NAME}_include_directories = ${${PROJECT_NAME}_include_directories}")
if (${PROJECT_NAME}_include_directories)
target_include_directories (${_target_NAME} ${${PROJECT_NAME}_include_directories})
target_include_directories (${_target_NAME} PRIVATE ${${PROJECT_NAME}_include_directories})
endif ()
if (_target_INCLUDE_DIRS)
target_include_directories (${_target_NAME} PRIVATE ${_target_INCLUDE_DIRS})
Expand Down

0 comments on commit ad71003

Please sign in to comment.