Skip to content
Snippets Groups Projects
Commit 66b952fd authored by Ian Bell's avatar Ian Bell
Browse files

Add compile flags in a more sensible place

parent ff0fb8c8
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,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)
if (TEQP_TESTTEQPCPP)
add_executable(test_teqpcpp "${CMAKE_CURRENT_SOURCE_DIR}/interface/CPP/test_teqpcpp.cpp")
......@@ -114,10 +115,9 @@ endif()
if (TEQP_MULTIPRECISION_ENABLED)
add_definitions(-DTEQP_MULTIPRECISION_ENABLED)
else()
add_definitions(-DMULTICOMPLEX_NO_MULTIPRECISION)
endif()
if (NOT TEQP_NO_PYTHON)
add_definitions(-DUSE_AUTODIFF)
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/externals/pybind11" "pybind11")
......
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