Browse Source

Merge pull request #685 from AtomicGameEngine/JME-ATOMIC-678

Fix warning on OS X when generating CEF3 helper targets with a space in the name
JoshEngebretson 9 years ago
parent
commit
f5c697e9ff
1 changed files with 5 additions and 0 deletions
  1. 5 0
      CMakeLists.txt

+ 5 - 0
CMakeLists.txt

@@ -72,6 +72,11 @@ endif()
 
 if (ATOMIC_WEBVIEW)
   if(APPLE)
+    if(POLICY CMP0037)
+      # new cmake doesn't like creating framework whose name has spaces
+      # which CEF3 scripts (including shell) currently require on OSX
+      cmake_policy(SET CMP0037 OLD)
+    endif()
     include_directories (${CMAKE_SOURCE_DIR}/Submodules/CEF/MacOSX/)
     add_subdirectory(Submodules/CEF/MacOSX/libcef_dll)
   elseif(MSVC)