Skip to content

Commit

Permalink
set SUNDIALS_STATIC_DEFINE as public compile definition on static libs
Browse files Browse the repository at this point in the history
  • Loading branch information
adriendelsalle committed May 16, 2024
1 parent a0581c3 commit af135ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/macros/SundialsAddLibrary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ macro(sundials_add_library target)

# add compile definitions to object library for SUNDIALS_EXPORT
if(${_libtype} MATCHES "STATIC")
target_compile_definitions(${obj_target} PRIVATE SUNDIALS_STATIC_DEFINE)
target_compile_definitions(${obj_target} PUBLIC SUNDIALS_STATIC_DEFINE)
else()
target_compile_definitions(${obj_target} PRIVATE sundials_core_EXPORTS)
endif()
Expand Down Expand Up @@ -296,7 +296,7 @@ macro(sundials_add_library target)

# add compile definitions for SUNDIALS_EXPORT
if(${_libtype} MATCHES "STATIC")
target_compile_definitions(${_actual_target_name} PRIVATE SUNDIALS_STATIC_DEFINE)
target_compile_definitions(${_actual_target_name} PUBLIC SUNDIALS_STATIC_DEFINE)
else()
target_compile_definitions(${obj_target} PRIVATE sundials_core_EXPORTS)
endif()
Expand Down

0 comments on commit af135ae

Please sign in to comment.