2525# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626
2727################################################################################
28- # Determine architecture
28+ # Architecture detection.
2929################################################################################
3030
3131# When adding a new architecture, look at all the places ARCH is used
3232
3333try_compile (BUILD_RESULT
3434 "${CMAKE_BINARY_DIR } "
35- "${DAEMON_DIR} /cmake/DaemonArchitecture/DaemonArchitecture .cpp"
35+ "${CMAKE_CURRENT_LIST_DIR } /Architecture/Architecture .cpp"
3636 CMAKE_FLAGS CMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}
3737 OUTPUT_VARIABLE BUILD_LOG
3838)
@@ -46,7 +46,7 @@ try_compile(BUILD_RESULT
4646# Setting USE_WERROR to ON doesn't print this warning.
4747if (NOT BUILD_RESULT)
4848 message (WARNING
49- "Failed to build DaemonArchitecture .cpp\n "
49+ "Failed to build Architecture .cpp\n "
5050 "Setting -Werror in CXXFLAGS can produce false positive errors\n "
5151 "${BUILD_LOG} "
5252 )
@@ -57,14 +57,14 @@ string(REPLACE "DAEMON_ARCH_" "" ARCH "${ARCH_DEFINE}")
5757
5858if (NOT ARCH)
5959 message (FATAL_ERROR
60- "Missing DAEMON_ARCH, there is a mistake in DaemonArchitecture .cpp\n "
60+ "Missing DAEMON_ARCH, there is a mistake in Architecture .cpp\n "
6161 "${BUILD_LOG} "
6262 )
6363elseif (ARCH STREQUAL "unsupported" )
6464 message (FATAL_ERROR "Architecture not supported" )
6565endif ()
6666
67- message (STATUS "Detected architecture: ${ARCH} " )
67+ message (STATUS "Detected target architecture: ${ARCH} " )
6868
6969add_definitions (-D${ARCH_DEFINE} )
7070
0 commit comments