As per the configure script, HOST variable value should identify the
target, not build host.
* CMakeLists.txt (HOST): Set variable before find_package(Threads);
change message type to STATUS; report ${HOST} value as "TARGET".
* CMakeLists.txt (_HOST): Use CMAKE_SYSTEM_PROCESSOR instead
of CMAKE_HOST_SYSTEM_PROCESSOR; specify vendor as "unknown" (instead
of empty string); remove FIXME.
mallocx.c)
set(LIBS)
+set(_HOST ${CMAKE_SYSTEM_PROCESSOR}-unknown-${CMAKE_SYSTEM})
+string(TOLOWER ${_HOST} HOST)
+message(STATUS "TARGET = ${HOST}")
+
if (enable_threads)
find_package(Threads REQUIRED)
message("Thread Model: ${CMAKE_THREAD_LIBS_INIT}" )
# MESSAGE("Parallel mark requires enable_threads ON" )
#ENDIF(Threads_FOUND)
-set(_HOST ${CMAKE_HOST_SYSTEM_PROCESSOR}--${CMAKE_SYSTEM})
- #FIXME missing the vendor field.
-string(TOLOWER ${_HOST} HOST)
-message("HOST = ${HOST}")
-
# Thread Detection. Relying on cmake for lib and includes.
#TODO check cmake detection
if (CMAKE_USE_PTHREADS_INIT)