Core/Buildsystem: Set up mutliprocess compiles for all buildmodes (non-PCH/PCH with and without debugmodes)
--HG-- branch : trunk
This commit is contained in:
1 parent
3a18e4afcc
commit
30908638cb
1 file changed
+1
-4
@@ -31,10 +31,7 @@ endif()
|
|||||||
add_definitions(-D_BUILD_DIRECTIVE="$(ConfigurationName)")
|
add_definitions(-D_BUILD_DIRECTIVE="$(ConfigurationName)")
|
||||||
|
|
||||||
# multithreaded compiling on VS
|
# multithreaded compiling on VS
|
||||||
if((NOT USE_COREPCH) AND (NOT USE_SCRIPTPCH))
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
|
|
||||||
message(STATUS "MSVC: PCH not used - enabled multithreaded compiling")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES - eliminates the warning by changing the strcpy call to strcpy_s, which prevents buffer overruns
|
# Define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES - eliminates the warning by changing the strcpy call to strcpy_s, which prevents buffer overruns
|
||||||
add_definitions(-D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES)
|
add_definitions(-D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES)
|
||||||
|
|||||||
Reference in new issue
Block a user