Reword emscripten-related error messages
authorkoda
Mon, 25 Apr 2016 16:26:02 -0400
changeset 11701 e71435e046a1
parent 11700 ea1097d7bd27
child 11702 08cbd57ffb1a
Reword emscripten-related error messages
CMakeLists.txt
cmake_modules/Platform/Emscripten.cmake
--- 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)
--- 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.