From 20de153ca35b28e6b6fe97007a270b97ef513f0d Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 27 May 2021 20:30:42 +0300 Subject: [PATCH] Link tests to Boost::math --- test/compile_test/CMakeLists.txt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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)