mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-31 11:19:18 +00:00
Fix CMake generator expressions
This commit is contained in:
parent
2e06b27fcf
commit
2bab3b8863
@ -73,7 +73,7 @@ endif()
|
||||
|
||||
if(UNIX)
|
||||
target_compile_definitions(volk_gnsssdr_profile
|
||||
PUBLIC $<$<CONFIG:Release>:_FORTIFY_SOURCE=2>$<$<CONFIG:RelWithDebInfo>:_FORTIFY_SOURCE=2>$<$<BOOL:${ENABLE_PACKAGING}>:_FORTIFY_SOURCE=2>
|
||||
PUBLIC $<$<CONFIG:Release>:_FORTIFY_SOURCE=2>$<$<CONFIG:RelWithDebInfo>:_FORTIFY_SOURCE=2>$<$<AND:$<CONFIG:None>,$<BOOL:${ENABLE_PACKAGING}>>:_FORTIFY_SOURCE=2>
|
||||
)
|
||||
endif()
|
||||
|
||||
@ -102,7 +102,7 @@ endif()
|
||||
|
||||
if(UNIX)
|
||||
target_compile_definitions(volk_gnsssdr-config-info
|
||||
PUBLIC $<$<CONFIG:Release>:_FORTIFY_SOURCE=2>$<$<CONFIG:RelWithDebInfo>:_FORTIFY_SOURCE=2>$<$<BOOL:${ENABLE_PACKAGING}>:_FORTIFY_SOURCE=2>
|
||||
PUBLIC $<$<CONFIG:Release>:_FORTIFY_SOURCE=2>$<$<CONFIG:RelWithDebInfo>:_FORTIFY_SOURCE=2>$<$<AND:$<CONFIG:None>,$<BOOL:${ENABLE_PACKAGING}>>:_FORTIFY_SOURCE=2>
|
||||
)
|
||||
endif()
|
||||
|
||||
|
@ -590,11 +590,11 @@ if(NOT (ENABLE_STATIC_LIBS AND (CMAKE_GENERATOR STREQUAL Xcode)))
|
||||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
PUBLIC $<INSTALL_INTERFACE:include>
|
||||
)
|
||||
#if(UNIX)
|
||||
if(UNIX)
|
||||
target_compile_definitions(volk_gnsssdr
|
||||
PUBLIC $<$<CONFIG:Release>:_FORTIFY_SOURCE=2>$<$<CONFIG:RelWithDebInfo>:_FORTIFY_SOURCE=2>$<$<BOOL:${ENABLE_PACKAGING}>:_FORTIFY_SOURCE=2>
|
||||
PUBLIC $<$<CONFIG:Release>:_FORTIFY_SOURCE=2>$<$<CONFIG:RelWithDebInfo>:_FORTIFY_SOURCE=2>$<$<AND:$<CONFIG:None>,$<BOOL:${ENABLE_PACKAGING}>>:_FORTIFY_SOURCE=2>
|
||||
)
|
||||
#endif()
|
||||
endif()
|
||||
if(USE_CPU_FEATURES)
|
||||
if(CPUFEATURES_FOUND)
|
||||
target_include_directories(volk_gnsssdr
|
||||
@ -667,7 +667,7 @@ if(ENABLE_STATIC_LIBS)
|
||||
)
|
||||
if(UNIX)
|
||||
target_compile_definitions(volk_gnsssdr_static
|
||||
PUBLIC $<$<CONFIG:Release>:_FORTIFY_SOURCE=2>$<$<CONFIG:RelWithDebInfo>:_FORTIFY_SOURCE=2>$<$<BOOL:${ENABLE_PACKAGING}>:_FORTIFY_SOURCE=2>
|
||||
PUBLIC $<$<CONFIG:Release>:_FORTIFY_SOURCE=2>$<$<CONFIG:RelWithDebInfo>:_FORTIFY_SOURCE=2>$<$<AND:$<CONFIG:None>,$<BOOL:${ENABLE_PACKAGING}>>:_FORTIFY_SOURCE=2>
|
||||
)
|
||||
endif()
|
||||
set_target_properties(volk_gnsssdr_static PROPERTIES OUTPUT_NAME volk_gnsssdr)
|
||||
|
Loading…
Reference in New Issue
Block a user