From e84623f8d183d9e39e8529b9d19b05b296e42a3d Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Tue, 1 Aug 2023 11:09:33 -0400 Subject: [PATCH] No mcx should not be a public definition Otherwise it propagates to any code that links against the static library --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 49267481..c2ac9013 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,7 +96,7 @@ if (NOT TEQP_NO_TEQPCPP) target_link_libraries(teqpcpp PUBLIC teqpinterface PUBLIC autodiff) target_include_directories(teqpcpp PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/interface/CPP") set_property(TARGET teqpcpp PROPERTY POSITION_INDEPENDENT_CODE ON) - target_compile_definitions(teqpcpp PUBLIC -DMULTICOMPLEX_NO_MULTIPRECISION) + target_compile_definitions(teqpcpp PRIVATE -DMULTICOMPLEX_NO_MULTIPRECISION) if (TEQP_TESTTEQPCPP) add_executable(test_teqpcpp "${CMAKE_CURRENT_SOURCE_DIR}/interface/CPP/test/test_teqpcpp.cpp")