Skip to content

Commit

Permalink
add /bigobj and /MP to compile options for MSVC builds
Browse files Browse the repository at this point in the history
  • Loading branch information
JolifantoBambla committed Sep 7, 2021
1 parent 805f0a6 commit 0e42320
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ endif()

add_library(${PROJECT_NAME} ${gvk_LibraryType})

# Append MSVC specific compiler flags
if (MSVC)
target_compile_options(${PROJECT_NAME}
${gvk_SourceScope} "/bigobj"
${gvk_SourceScope} "/MP")
endif(MSVC)

## Direct Sources & Includes
# NOTE: We first collect all include directories and source files and add it to our target in the end.
# We do it like this, because depending on gvk_LibraryType the scope (INTERFACE, PUBLIC, PRIVATE) changes and we don't
Expand Down

0 comments on commit 0e42320

Please sign in to comment.