Set pas2c switches more cleanly
authorkoda
Mon, 02 May 2016 22:52:21 -0400
changeset 11791 3127b0fece81
parent 11790 ac93cfc17365
child 11792 d8b7884abf9c
Set pas2c switches more cleanly
CMakeLists.txt
project_files/hwc/CMakeLists.txt
--- a/CMakeLists.txt	Tue May 03 01:13:41 2016 +0200
+++ b/CMakeLists.txt	Mon May 02 22:52:21 2016 -0400
@@ -58,6 +58,7 @@
     endif()
 
     set(BUILD_ENGINE_C ON CACHE STRING "Required for BUILD_ENGINE_JS" FORCE)
+    set(BUILD_ENGINE_LIBRARY ON CACHE STRING "Required for BUILD_ENGINE_JS" FORCE)
     set(NOAUTOUPDATE ON CACHE STRING "Required for BUILD_ENGINE_JS" FORCE)
     set(PHYSFS_SYSTEM OFF CACHE STRING "Required for BUILD_ENGINE_JS" FORCE)
     set(LUA_SYSTEM OFF CACHE STRING "Required for BUILD_ENGINE_JS" FORCE)
--- a/project_files/hwc/CMakeLists.txt	Tue May 03 01:13:41 2016 +0200
+++ b/project_files/hwc/CMakeLists.txt	Mon May 02 22:52:21 2016 -0400
@@ -64,7 +64,13 @@
                -d ENDIAN_LITTLE
                -d DEBUGFILE)
 if(BUILD_ENGINE_JS)
-    set(pas2c_args ${pas2c_args} -d WEBGL -d HWLIBRARY)
+    set(pas2c_args ${pas2c_args} -d WEBGL)
+endif()
+if(BUILD_ENGINE_LIBRARY)
+    set(pas2c_args ${pas2c_args} -d HWLIBRARY)
+endif()
+if(GL2)
+    set(pas2c_args ${pas2c_args} -d GL2)
 endif()
 
 #invoke pas2c on main module, it will call all the others