[CMake] Define SHOULD_INSTALL_JS_SHELL before including ports Options files.
[WebKit-https.git] / CMakeLists.txt
index ae313e9a2d0d188eaa84f56158745b4d1bc1e703..51d701d4a6a2603f370ad9072d705b45465a4c73 100644 (file)
@@ -128,6 +128,11 @@ set(WebKit_LIBRARY_TYPE SHARED)
 set(WebKit2_LIBRARY_TYPE SHARED)
 set(WebCoreTestSupport_LIBRARY_TYPE STATIC)
 
+# -----------------------------------------------------------------------------
+# Install JavaScript shell
+# -----------------------------------------------------------------------------
+option(SHOULD_INSTALL_JS_SHELL "generate an installation rule to install the built JavaScript shell")
+
 # -----------------------------------------------------------------------------
 # Common options
 #------------------------------------------------------------------------------
@@ -148,11 +153,6 @@ if (ENABLE_API_TESTS)
     enable_testing()
 endif ()
 
-# -----------------------------------------------------------------------------
-# Install JavaScript shell
-# -----------------------------------------------------------------------------
-option(SHOULD_INSTALL_JS_SHELL "generate an installation rule to install the built JavaScript shell")
-
 # -----------------------------------------------------------------------------
 # Define packaging
 # -----------------------------------------------------------------------------