Set default value of HOST_OS (#4384)
author이성재/On-Device Lab(SR)/Principal Engineer/삼성전자 <sj925.lee@samsung.com>
Thu, 7 Feb 2019 06:04:20 +0000 (15:04 +0900)
committer이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Thu, 7 Feb 2019 06:04:20 +0000 (15:04 +0900)
- Set default value of HOST_OS in platform identification script.
- For using cmake directly without make.

Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
cmake/option/identify_platform.cmake

index 3f62b52..4702304 100644 (file)
@@ -8,6 +8,10 @@ if(NOT TARGET_ARCH OR "${TARGET_ARCH}" STREQUAL "")
   set(TARGET_ARCH "${HOST_ARCH}")
 endif()
 
+if(NOT DEFINED HOST_OS)
+  string(TOLOWER ${CMAKE_HOST_SYSTEM_NAME} HOST_OS)
+endif()
+
 if(NOT DEFINED TARGET_OS)
   set(TARGET_OS "${HOST_OS}")
 endif()