@@ -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
@@ -59,7 +59,7 @@ function(daemon_detect_arch)
5959 endif ()
6060
6161 # The DAEMON_NACL_ARCH variable contributes to the nexe file name.
62- set (DAEMON_NACL_ARCH "${nacl_arch} " PARENT_SCOPE)
62+ set (DAEMON_NACL_ARCH_NAME "${nacl_arch} " PARENT_SCOPE)
6363endfunction ()
6464
6565function (daemon_set_arch_intrinsics name )
@@ -76,16 +76,16 @@ function(daemon_set_intrinsics)
7676 # Makes possible to do that in C++ code:
7777 # > if defined(DAEMON_USER_ARCH_INTRINSICS_amd64)
7878 # > if defined(DAEMON_USER_ARCH_INTRINSICS_i686)
79- daemon_set_arch_intrinsics("${DAEMON_ARCH } " )
79+ daemon_set_arch_intrinsics("${DAEMON_ARCH_NAME } " )
8080
8181 set (amd64_PARENT "i686" )
8282 set (arm64_PARENT "armhf" )
8383
84- if ("${DAEMON_ARCH } _PARENT" )
85- daemon_set_arch_intrinsics("${${DAEMON_ARCH } _PARENT}" )
84+ if ("${DAEMON_ARCH_NAME } _PARENT" )
85+ daemon_set_arch_intrinsics("${${DAEMON_ARCH_NAME } _PARENT}" )
8686 endif ()
8787 else ()
88- message (STATUS "Disabling ${DAEMON_ARCH } architecture intrinsics" )
88+ message (STATUS "Disabling ${DAEMON_ARCH_NAME } architecture intrinsics" )
8989 endif ()
9090endfunction ()
9191
@@ -95,11 +95,11 @@ daemon_set_intrinsics()
9595# Makes possible to do that in CMake code:
9696# > if (DAEMON_ARCH_arm64)
9797# > if (DAEMON_NACL_ARCH_armhf)
98- set ("DAEMON_ARCH_${DAEMON_ARCH } " ON )
99- set ("DAEMON_NACL_ARCH_${DAEMON_NACL_ARCH } " ON )
98+ set ("DAEMON_ARCH_${DAEMON_ARCH_NAME } " ON )
99+ set ("DAEMON_NACL_ARCH_${DAEMON_NACL_ARCH_NAME } " ON )
100100
101101if (DAEMON_SOURCE_GENERATOR)
102102 # Add printable strings to the executable.
103- daemon_add_buildinfo("char*" "DAEMON_ARCH_STRING" "\" ${DAEMON_ARCH } \" " )
104- daemon_add_buildinfo("char*" "DAEMON_NACL_ARCH_STRING" "\" ${DAEMON_NACL_ARCH } \" " )
103+ daemon_add_buildinfo("char*" "DAEMON_ARCH_STRING" "\" ${DAEMON_ARCH_NAME } \" " )
104+ daemon_add_buildinfo("char*" "DAEMON_NACL_ARCH_STRING" "\" ${DAEMON_NACL_ARCH_NAME } \" " )
105105endif ()
0 commit comments