Skip to content

Commit

Permalink
Use build interface generator function for config include
Browse files Browse the repository at this point in the history
Signed-off-by: Georgia Stuart <gstuart@umass.edu>
  • Loading branch information
georgiastuart committed Sep 17, 2024
1 parent c0d294a commit 36f191c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -376,5 +376,5 @@ set(CMAKE_CXX_FLAGS_UBSAN

# Make the config_exp.h file in the build directory,
# to be added to the private include path by modules
configure_file(config_cmake.h_in ${PROJECT_BINARY_DIR}/config/config_exp.h)
include_directories(${PROJECT_BINARY_DIR}/config)
configure_file(config_cmake.h_in config/config_exp.h)
include_directories($<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/config/>)

0 comments on commit 36f191c

Please sign in to comment.