Fixing toolchain_external.cmake build configuration: generalizing it from Nuttx OS.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-05-08 20:09:04 +03:00
parent 290eb2f9b0
commit 2852d93af6
4 changed files with 13 additions and 7 deletions
+3 -3
View File
@@ -76,8 +76,8 @@ project (Jerry CXX C ASM)
option(STRIP_RELEASE_BINARY "Strip symbols from release binaries" OFF)
set(MCU_SCRIPT_FILE "tests/blinky.js" CACHE STRING "Script to run on MCU")
elseif("${PLATFORM}" STREQUAL "NUTTX")
set(PLATFORM_EXT "NUTTX")
elseif("${PLATFORM}" STREQUAL "EXTERNAL")
set(PLATFORM_EXT "${CMAKE_SYSTEM_VERSION}")
set(EXTERNAL_BUILD TRUE)
set(EXTERNAL_LIBC_INTERFACE "UNDEFINED" CACHE STRING "Path to external libc include directory")
@@ -95,7 +95,7 @@ project (Jerry CXX C ASM)
set(USE_JERRY_LIBC TRUE)
# Jerry's libc doesn't support Nuttx platform
if(${PLATFORM} STREQUAL "NUTTX")
if(${PLATFORM_EXT} STREQUAL "NUTTX")
message(FATAL_ERROR "Nuttx build doesn't support Jerry's libc implementation")
endif()
else()