Browse Source

Fix macro

Josh Engebretson 10 years ago
parent
commit
d79e317628
1 changed files with 8 additions and 8 deletions
  1. 8 8
      CMake/Modules/AtomicUtils.cmake

+ 8 - 8
CMake/Modules/AtomicUtils.cmake

@@ -1,27 +1,27 @@
 macro(GroupSources curdir)
 
-    if (NOT MSVC)
-        return()
-    endif()    
+    if (MSVC)
 
     file(GLOB children RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/${curdir} ${CMAKE_CURRENT_SOURCE_DIR}/${curdir}/*)
 
     foreach(child ${children})
 
         if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${curdir}/${child})
-    
+
             if ("${curdir}" STREQUAL "")
                 GroupSources(${child})
             else()
                 GroupSources(${curdir}/${child})
             endif()
         else()
-        
-            string(REPLACE "/" "\\" groupname ${curdir})                       
+
+            string(REPLACE "/" "\\" groupname ${curdir})
             source_group(${groupname} FILES ${CMAKE_CURRENT_SOURCE_DIR}/${curdir}/${child})
-        
+
         endif()
 
     endforeach()
 
-endmacro()
+    endif()
+
+endmacro()