Skip to content
Snippets Groups Projects
Commit 47f716ee authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Fix bug where boost includes SimoxUtility/math.h

parent 066a9e2b
No related branches found
No related tags found
No related merge requests found
PROJECT ( SimoxUtility )
set(CMAKE_INCLUDE_CURRENT_DIR OFF)
add_library(SimoxUtility SHARED) # SimoxUtility.h) # sources will be added later
target_include_directories(SimoxUtility PUBLIC
......@@ -24,8 +25,7 @@ target_link_libraries(SimoxUtility PUBLIC
Boost::regex
)
target_compile_options(SimoxUtility PRIVATE -include eigen/AssertAsException.h)
target_compile_options(SimoxUtility INTERFACE -include SimoxUtility/eigen/AssertAsException.h)
target_compile_options(SimoxUtility PUBLIC -include SimoxUtility/eigen/AssertAsException.h)
# disable boost auto linking
if (Boost_USE_STATIC_LIBS)
......
......@@ -19,7 +19,6 @@ MACRO(ADD_SU_TEST TEST_NAME)
ADD_EXECUTABLE(${TRG_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/${TEST_NAME}.cpp)
TARGET_LINK_LIBRARIES(${TRG_NAME} PRIVATE SimoxUtility Boost::unit_test_framework)
target_include_directories(${TRG_NAME} PRIVATE ${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/..)
if (NOT Boost_USE_STATIC_LIBS)
target_compile_definitions(${TRG_NAME} PRIVATE -DBOOST_TEST_DYN_LINK)
endif ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment