mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-31 19:29:17 +00:00
Fix lintian warning hardening-no-fortify-functions
This commit is contained in:
parent
d98ea32222
commit
10b1b36c88
@ -71,6 +71,12 @@ else()
|
|||||||
target_link_libraries(volk_gnsssdr_profile PRIVATE volk_gnsssdr ${orc_lib})
|
target_link_libraries(volk_gnsssdr_profile PRIVATE volk_gnsssdr ${orc_lib})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(UNIX)
|
||||||
|
target_compile_definitions(volk_gnsssdr_profile
|
||||||
|
PUBLIC $<$<CONFIG:Release>:_FORTIFY_SOURCE=2>$<$<CONFIG:RelWithDebInfo>:_FORTIFY_SOURCE=2>
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(ENABLE_STRIP)
|
if(ENABLE_STRIP)
|
||||||
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND NOT WIN32)
|
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND NOT WIN32)
|
||||||
set_target_properties(volk_gnsssdr_profile
|
set_target_properties(volk_gnsssdr_profile
|
||||||
@ -94,6 +100,12 @@ else()
|
|||||||
target_link_libraries(volk_gnsssdr-config-info volk_gnsssdr ${orc_lib})
|
target_link_libraries(volk_gnsssdr-config-info volk_gnsssdr ${orc_lib})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(UNIX)
|
||||||
|
target_compile_definitions(volk_gnsssdr-config-info
|
||||||
|
PUBLIC $<$<CONFIG:Release>:_FORTIFY_SOURCE=2>$<$<CONFIG:RelWithDebInfo>:_FORTIFY_SOURCE=2>
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(ENABLE_STRIP)
|
if(ENABLE_STRIP)
|
||||||
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND NOT WIN32)
|
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND NOT WIN32)
|
||||||
set_target_properties(volk_gnsssdr-config-info
|
set_target_properties(volk_gnsssdr-config-info
|
||||||
|
Loading…
Reference in New Issue
Block a user