Browse Source

Add new tde_setup_architecture_flags macro

(cherry picked from commit 8e6f203f92)
tags/v3.5.13.1
Timothy Pearson 8 years ago
committed by Slávek Banko
parent
commit
8552bcafcd
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      modules/TDEMacros.cmake

+ 14
- 0
modules/TDEMacros.cmake View File

@@ -1235,3 +1235,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( )

Loading…
Cancel
Save