Skip to content

Commit

Permalink
MMVII: cmake: force parallel compilation with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
meynardc committed Jan 26, 2024
1 parent 863eeb3 commit 5fae86f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MMVII/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ add_library(P2007 "${mmv2_libsrcs}" "${mmv2_headers}")
target_include_directories(P2007 PRIVATE "${mmv2_include_dir};${mmv1_include_dir};${EIGEN3_INCLUDE_PATH}")
target_link_libraries(P2007 PRIVATE MMVII_compiler_flags Threads::Threads)

# Force parallel compilation with MSVC
if(MSVC)
target_compile_options(P2007 PRIVATE "/MP")
endif()

#######################################################
## MMVII build (executable)
Expand Down

0 comments on commit 5fae86f

Please sign in to comment.