diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2013-12-23 12:39:04 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-12-23 12:39:04 +0100 |
commit | 541bb2f48af73c6ddce1a8c1f992a9cbf52b7102 (patch) | |
tree | 50bc114eed2298156a3f821ae5071035e00c1295 /modules | |
parent | b51b691c8b18f5e7cf01689752c9b03a4212bdf6 (diff) | |
download | tde-cmake-541bb2f48af73c6ddce1a8c1f992a9cbf52b7102.tar.gz tde-cmake-541bb2f48af73c6ddce1a8c1f992a9cbf52b7102.zip |
Fix FTBFS with clang
Diffstat (limited to 'modules')
-rw-r--r-- | modules/TDEMacros.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 282b765..25b14b0 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -1426,11 +1426,11 @@ endif( ) ##### tde_setup_architecture_flags macro( tde_setup_architecture_flags ) - message( STATUS "Detected ${CMAKE_SYSTEM_PROCESSOR} CPU architecture" ) - ## Immediate symbol binding is not available on ARM architectures - if(${CMAKE_SYSTEM_PROCESSOR} MATCHES arm*) - set( LINKER_IMMEDIATE_BINDING_FLAGS "" CACHE INTERNAL "" FORCE ) - else( ) + message( STATUS "Detected ${CMAKE_SYSTEM_PROCESSOR} CPU architecture" ) + ## Immediate symbol binding is available only for gcc but not on ARM architectures + if( ${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" AND NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES arm* ) set( LINKER_IMMEDIATE_BINDING_FLAGS "-z\ now" CACHE INTERNAL "" FORCE ) + else( ) + set( LINKER_IMMEDIATE_BINDING_FLAGS "" CACHE INTERNAL "" FORCE ) endif( ) endmacro( ) |