# HG changeset patch # User koda # Date 1461615962 14400 # Node ID e71435e046a10a5fd52d749e6bf9c746a0bc0ae4 # Parent ea1097d7bd27fae9b4994d12a382b5c472acc092 Reword emscripten-related error messages diff -r ea1097d7bd27 -r e71435e046a1 CMakeLists.txt --- a/CMakeLists.txt Mon Apr 25 21:12:34 2016 +0200 +++ b/CMakeLists.txt Mon Apr 25 16:26:02 2016 -0400 @@ -54,7 +54,7 @@ if(BUILD_ENGINE_JS) if(NOT CMAKE_TOOLCHAIN_FILE) - message(FATAL_ERROR "Missing emscripten toolchain file\nRerun cmake with -DCMAKE_TOOLCHAIN_FILE=${CMAKE_SOURCE_DIR}/cmake_modules/Platform/Emscripten.cmake") + message(FATAL_ERROR "Missing emscripten toolchain file\nClean your cache and rerun cmake with -DCMAKE_TOOLCHAIN_FILE=${CMAKE_SOURCE_DIR}/cmake_modules/Platform/Emscripten.cmake") endif() set(BUILD_ENGINE_C ON CACHE STRING "Required for BUILD_ENGINE_JS" FORCE) diff -r ea1097d7bd27 -r e71435e046a1 cmake_modules/Platform/Emscripten.cmake --- a/cmake_modules/Platform/Emscripten.cmake Mon Apr 25 21:12:34 2016 +0200 +++ b/cmake_modules/Platform/Emscripten.cmake Mon Apr 25 16:26:02 2016 -0400 @@ -58,7 +58,7 @@ # Abort if not found. if("${EMSCRIPTEN_ROOT_PATH}" STREQUAL "") - 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.") + 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.") endif() # Normalize, convert Windows backslashes to forward slashes or CMake will crash.