There was an error while loading. Please reload this page.
1 parent 7a1f69c commit a4ef2f1Copy full SHA for a4ef2f1
1 file changed
src/nrniv/CMakeLists.txt
@@ -455,9 +455,9 @@ endif()
455
find_package(SUNDIALS REQUIRED)
456
add_dependencies(nrniv_lib SUNDIALS)
457
target_link_libraries(
458
- nrniv_lib ${SUNDIALS_LIB_DIR}/libsundials_ida.a ${SUNDIALS_LIB_DIR}/libsundials_cvode.a
+ nrniv_lib PRIVATE ${SUNDIALS_LIB_DIR}/libsundials_ida.a ${SUNDIALS_LIB_DIR}/libsundials_cvode.a
459
${SUNDIALS_LIB_DIR}/libsundials_nvecpthreads.a ${SUNDIALS_LIB_DIR}/libsundials_nvecserial.a)
460
-target_include_directories(nrniv_lib PUBLIC ${SUNDIALS_INCLUDE_DIR})
+target_include_directories(nrniv_lib PRIVATE $<BUILD_INTERFACE:${SUNDIALS_INCLUDE_DIR}>)
461
462
set_target_properties(nrniv_lib PROPERTIES EXPORT_NAME nrniv OUTPUT_NAME nrniv)
463
target_compile_features(nrniv_lib PUBLIC cxx_std_17)
0 commit comments