diff options
author | Timothy Pearson <[email protected]> | 2012-02-19 14:39:26 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-02-19 14:39:26 -0600 |
commit | 8e6f203f9221d336edfa84b2e3eba6205a30c816 (patch) | |
tree | b2a35e9d1583e5f895b078dc41e837aa147c38e8 | |
parent | caedf8323c45b376c824de343f31de78664b2511 (diff) | |
download | tde-cmake-8e6f203f9221d336edfa84b2e3eba6205a30c816.tar.gz tde-cmake-8e6f203f9221d336edfa84b2e3eba6205a30c816.zip |
Add new tde_setup_architecture_flags macro
-rw-r--r-- | modules/TDEMacros.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 1091755..bcc0c64 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -1318,3 +1318,17 @@ if( ${CMAKE_SOURCE_DIR} MATCHES ${CMAKE_BINARY_DIR} ) cd /tmp/${PROJECT_NAME}.build cmake ${CMAKE_SOURCE_DIR} [arguments...]" ) 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( ) + set( LINKER_IMMEDIATE_BINDING_FLAGS "-z\ now" CACHE INTERNAL "" FORCE ) + endif( ) +endmacro( ) |