[CMAKE] Set the /MP flag for MSVC_IDE globally.
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 12 May 2015 11:38:32 +0000 (11:38 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 12 May 2015 11:38:32 +0000 (11:38 +0000)
svn path=/trunk/; revision=67686

reactos/CMakeLists.txt
reactos/cmake/msvc.cmake

index b8fc1cf..030f7d6 100644 (file)
@@ -64,6 +64,10 @@ include(cmake/compilerflags.cmake)
 
 add_definitions(-D__REACTOS__)
 
+if(MSVC_IDE)
+    add_compile_flags("/MP")
+endif()
+
 if(NOT CMAKE_CROSSCOMPILING)
 
     add_definitions(-DTARGET_${ARCH})
index d81de26..f32a72a 100644 (file)
@@ -82,11 +82,8 @@ elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
     add_compile_flags("/Ob2 /D NDEBUG")
 endif()
 
-if(MSVC_IDE)
-    add_compile_flags("/MP")
-    if(NOT DEFINED USE_FOLDER_STRUCTURE)
-        set(USE_FOLDER_STRUCTURE FALSE)
-    endif()
+if(MSVC_IDE AND (NOT DEFINED USE_FOLDER_STRUCTURE))
+    set(USE_FOLDER_STRUCTURE FALSE)
 endif()
 
 if(NOT DEFINED RUNTIME_CHECKS)