@@ -36,7 +36,7 @@ mark_as_advanced(USE_ARCH_INTRINSICS)
3636function (daemon_detect_arch )
3737 daemon_run_detection ("" "ARCH" "Architecture.c" "" )
3838
39- set (DAEMON_ARCH "${arch_name} " PARENT_SCOPE )
39+ set (DAEMON_ARCH_NAME "${arch_name} " PARENT_SCOPE )
4040
4141 message (STATUS "Detected target architecture: ${arch_name} " )
4242
@@ -70,7 +70,7 @@ function(daemon_detect_arch)
7070 endif ()
7171
7272 # The DAEMON_NACL_ARCH variable contributes to the nexe file name.
73- set (DAEMON_NACL_ARCH "${nacl_arch} " PARENT_SCOPE )
73+ set (DAEMON_NACL_ARCH_NAME "${nacl_arch} " PARENT_SCOPE )
7474endfunction ()
7575
7676function (daemon_set_arch_intrinsics name )
@@ -96,17 +96,17 @@ function(daemon_set_intrinsics)
9696 # Makes possible to do that in C++ code:
9797 # > if defined(DAEMON_USE_ARCH_INTRINSICS_amd64)
9898 # > if defined(DAEMON_USE_ARCH_INTRINSICS_i686)
99- daemon_set_arch_intrinsics ("${DAEMON_ARCH } " )
99+ daemon_set_arch_intrinsics ("${DAEMON_ARCH_NAME } " )
100100
101101 set (amd64_PARENT "i686" )
102102 set (arm64_PARENT "armhf" )
103103 set (ppc64el_PARENT "ppc64" )
104104
105- if ("${DAEMON_ARCH } _PARENT" )
106- daemon_set_arch_intrinsics ("${${DAEMON_ARCH } _PARENT}" )
105+ if ("${DAEMON_ARCH_NAME } _PARENT" )
106+ daemon_set_arch_intrinsics ("${${DAEMON_ARCH_NAME } _PARENT}" )
107107 endif ()
108108 else ()
109- message (STATUS "Disabling ${DAEMON_ARCH } architecture intrinsics" )
109+ message (STATUS "Disabling ${DAEMON_ARCH_NAME } architecture intrinsics" )
110110 endif ()
111111endfunction ()
112112
@@ -116,11 +116,11 @@ daemon_set_intrinsics()
116116# Makes possible to do that in CMake code:
117117# > if (DAEMON_ARCH_arm64)
118118# > if (DAEMON_NACL_ARCH_armhf)
119- set ("DAEMON_ARCH_${DAEMON_ARCH } " ON )
120- set ("DAEMON_NACL_ARCH_${DAEMON_NACL_ARCH } " ON )
119+ set ("DAEMON_ARCH_${DAEMON_ARCH_NAME } " ON )
120+ set ("DAEMON_NACL_ARCH_${DAEMON_NACL_ARCH_NAME } " ON )
121121
122122if (DAEMON_SOURCE_GENERATOR)
123123 # Add printable strings to the executable.
124- daemon_add_buildinfo ("char*" "DAEMON_ARCH_STRING" "\" ${DAEMON_ARCH } \" " )
125- daemon_add_buildinfo ("char*" "DAEMON_NACL_ARCH_STRING" "\" ${DAEMON_NACL_ARCH } \" " )
124+ daemon_add_buildinfo ("char*" "DAEMON_ARCH_STRING" "\" ${DAEMON_ARCH_NAME } \" " )
125+ daemon_add_buildinfo ("char*" "DAEMON_NACL_ARCH_STRING" "\" ${DAEMON_NACL_ARCH_NAME } \" " )
126126endif ()
0 commit comments