Commit 1e5b48f5 authored by Thomas Braun's avatar Thomas Braun
Browse files

cmake: Define parallel compilation earlier for MSVC

If we define it after creating the targets we don't get any speedup.
parent b03811bf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -104,6 +104,9 @@ if (TANGO_CHECK_HEADERS_SELF_CONTAINED)
    endfunction()
endif()

# multi process compilation
add_compile_options($<$<CXX_COMPILER_ID:MSVC>:/MP>)

#source code
add_subdirectory("log4tango")
add_subdirectory("src")
+0 −3
Original line number Diff line number Diff line
@@ -6,9 +6,6 @@ if(CMAKE_CL_64)
    add_definitions(-D_64BITS)
endif()

# multi process compilation
add_compile_options(/MP)

set(TANGO_LIBRARY_NAME tango)

if(CMAKE_BUILD_TYPE STREQUAL "Debug")