Fix issues related to export directives
This commit is contained in:
parent
adefa5c234
commit
60dd6b5065
@ -243,8 +243,9 @@ endif()
|
||||
# ---- Generate Build Info Headers ----
|
||||
|
||||
# used in export header generated below
|
||||
if(NOT CPPTRACE_BUILD_SHARED)
|
||||
if(build_type STREQUAL "STATIC")
|
||||
target_compile_definitions(${target_name} PUBLIC CPPTRACE_STATIC_DEFINE)
|
||||
set(CPPTRACE_STATIC_DEFINE TRUE)
|
||||
endif()
|
||||
|
||||
# ---- Library Properties ----
|
||||
|
||||
@ -15,3 +15,7 @@ if(NOT TARGET cpptrace::cpptrace)
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@package_name@-targets.cmake")
|
||||
|
||||
endif()
|
||||
|
||||
if(@CPPTRACE_STATIC_DEFINE@)
|
||||
target_compile_definitions(cpptrace::cpptrace INTERFACE CPPTRACE_STATIC_DEFINE)
|
||||
endif()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user