Skip to content

Commit

Permalink
Added multiprocessor compilation for MSVC in CMake.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRichards-Code committed Aug 30, 2024
1 parent 0e6e37f commit c3f5a23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMake/Include.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ if(PLATFORM_WINDOWS)
set(DYNAMIC_LINK_SUFFIX "_MD")
set(SIMUL_DYNAMIC_LIBS ON )
set(MSVC 1)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /O2 /Ob2 /DNDEBUG /Zi")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /Zi /Ob0 /Od /D_DEBUG /RTC1 /JMC")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MP /O2 /Ob2 /DNDEBUG /Zi")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MP /Zi /Ob0 /Od /D_DEBUG /RTC1 /JMC")
#link_directories(${VULKAN_SDK_DIR}/Lib)
#Specify C++ 17 in the CMAKE_CXX_FLAGS after project() and before add_subdirectory().
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++${PLATFORM_CPP_VERSION} /Zc:__cplusplus /utf-8")
Expand Down

0 comments on commit c3f5a23

Please sign in to comment.