Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save casallas/1347323 to your computer and use it in GitHub Desktop.
Save casallas/1347323 to your computer and use it in GitHub Desktop.
Fix the FindSpidermonkey.cmake module in Flusspferd
diff --git a/CMakeModules/FindSpidermonkey.cmake b/CMakeModules/FindSpidermonkey.cmake
index 2959614..9cf9a84 100644
--- a/CMakeModules/FindSpidermonkey.cmake
+++ b/CMakeModules/FindSpidermonkey.cmake
@@ -50,13 +50,13 @@ endif()
if(SPIDERMONKEY_ROOT)
find_library(
SPIDERMONKEY_LIBRARY
- NAMES mozjs-1.9.2 mozjs js js32 js3250
+ NAMES mozjs185 mozjs-1.9.2 mozjs js js32 js3250
PATHS "${SPIDERMONKEY_ROOT}/lib"
NO_DEFAULT_PATH)
else()
find_library(
SPIDERMONKEY_LIBRARY
- NAMES mozjs-1.9.2 mozjs js js32 js3250)
+ NAMES mozjs185 mozjs-1.9.2 mozjs-1.9.2 mozjs js js32 js3250)
endif()
set(SPIDERMONKEY_LIBRARIES ${SPIDERMONKEY_LIBRARY})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment