[Orxonox-commit 2466] r7173 - code/trunk/cmake/tools
rgrieder at orxonox.net
rgrieder at orxonox.net
Tue Aug 17 20:56:32 CEST 2010
Author: rgrieder
Date: 2010-08-17 20:56:32 +0200 (Tue, 17 Aug 2010)
New Revision: 7173
Modified:
code/trunk/cmake/tools/SourceFileUtilities.cmake
Log:
Enabled parallel build of compilations and normal source files for MSVC.
Somehow msvc treats source files differently when you specify a compiler option with "-" instead of "/".
Modified: code/trunk/cmake/tools/SourceFileUtilities.cmake
===================================================================
--- code/trunk/cmake/tools/SourceFileUtilities.cmake 2010-08-17 18:25:21 UTC (rev 7172)
+++ code/trunk/cmake/tools/SourceFileUtilities.cmake 2010-08-17 18:56:32 UTC (rev 7173)
@@ -61,9 +61,11 @@
LIST(APPEND _fullpath_sources ${_compilation_file})
# MSVC hack that excludes the compilations from the intellisense database
# (There is a bug with the "-" instead of "/". Only works for "Zm#" argument)
- IF(MSVC)
- SET_SOURCE_FILES_PROPERTIES(${_compilation_file} PROPERTIES COMPILE_FLAGS "-Zm1000")
- ENDIF()
+ # 2nd Note: Exploiting this results in a strange separation of the compilation
+ # file, causing the compiler not to use multi processing --> slower compiling.
+ #IF(MSVC)
+ # SET_SOURCE_FILES_PROPERTIES(${_compilation_file} PROPERTIES COMPILE_FLAGS "-Zm1000")
+ #ENDIF()
ENDIF()
SET(_compilation_name)
SET(_compilation)
More information about the Orxonox-commit
mailing list