cmake_modules/Platform/Emscripten.cmake
changeset 11701 e71435e046a1
parent 11658 f87ed83568c8
equal deleted inserted replaced
11700:ea1097d7bd27 11701:e71435e046a1
    56     set(EMSCRIPTEN_ROOT_PATH "$ENV{EMSCRIPTEN}")
    56     set(EMSCRIPTEN_ROOT_PATH "$ENV{EMSCRIPTEN}")
    57 endif()
    57 endif()
    58 
    58 
    59 # Abort if not found.
    59 # Abort if not found.
    60 if("${EMSCRIPTEN_ROOT_PATH}" STREQUAL "")
    60 if("${EMSCRIPTEN_ROOT_PATH}" STREQUAL "")
    61     message(FATAL_ERROR "Could not locate the Emscripten compiler toolchain directory! Either set the EMSCRIPTEN environment variable, or pass -DEMSCRIPTEN_ROOT_PATH=xxx to CMake to explicitly specify the location of the compiler! This usually matches EMSCRIPTEN_ROOT from your ~/.emscripten file.")
    61     message(FATAL_ERROR "Could not locate the Emscripten compiler toolchain directory! Set the EMSCRIPTEN environment variable to explicitly specify the location of the compiler! This usually matches EMSCRIPTEN_ROOT from your ~/.emscripten file.")
    62 endif()
    62 endif()
    63 
    63 
    64 # Normalize, convert Windows backslashes to forward slashes or CMake will crash.
    64 # Normalize, convert Windows backslashes to forward slashes or CMake will crash.
    65 get_filename_component(EMSCRIPTEN_ROOT_PATH "${EMSCRIPTEN_ROOT_PATH}" ABSOLUTE)
    65 get_filename_component(EMSCRIPTEN_ROOT_PATH "${EMSCRIPTEN_ROOT_PATH}" ABSOLUTE)
    66 
    66