Cedric Seehausen 9 years ago
parent
commit
c53425f19b
1 changed files with 4 additions and 3 deletions
  1. 4 3
      Build/CMake/Modules/AtomicDesktop.cmake

+ 4 - 3
Build/CMake/Modules/AtomicDesktop.cmake

@@ -10,9 +10,10 @@ set (ATOMIC_LINK_LIBRARIES ${ATOMIC_LINK_LIBRARIES} LibCpuId SQLite)
 # Check whether the CEF submodule is available
 if (EXISTS ${CMAKE_SOURCE_DIR}/Submodules/CEF)
     #Check if CEF got pulled by looking if the foldes is empty
-    file(GLOB RESULT ${CMAKE_SOURCE_DIR}/Submodules/CEF)
-    list(LENGTH ${RESULT} RES_LEN)
-    if(RES_LEN EQUAL 0)
+    file(GLOB CEF_FILES ${CMAKE_SOURCE_DIR}/Submodules/CEF/*)
+
+    list(LENGTH CEF_FILES CEF_FILES_LEN)
+    if(CEF_FILES_LEN EQUAL 0)
      message(STATUS "Initialising CEF submodule")
 
      find_package(Git REQUIRED)