diff --git a/test/compile_test/CMakeLists.txt b/test/compile_test/CMakeLists.txt index 835d7b11d..d4d3a5dcd 100644 --- a/test/compile_test/CMakeLists.txt +++ b/test/compile_test/CMakeLists.txt @@ -3,11 +3,6 @@ # https://www.boost.org/LICENSE_1_0.txt file(GLOB SOURCES "*.cpp") -add_library(boost_math-compile_tests ${SOURCES}) +add_library(boost_math-compile_tests STATIC ${SOURCES}) target_compile_features(boost_math-compile_tests PRIVATE cxx_std_17) -target_include_directories(boost_math-compile_tests PUBLIC ${CMAKE_SOURCE_DIR}/include) - -# For boost superproject CI testing -if(EXISTS ${CMAKE_SOURCE_DIR}/libs/math) - target_include_directories(boost_math-compile_tests PUBLIC ${CMAKE_SOURCE_DIR}/libs/math/include) -endif() +target_link_libraries(boost_math-compile_tests PUBLIC Boost::math)