Skip to content

Commit

Permalink
Added multiprocessor compiling to CMake
Browse files Browse the repository at this point in the history
Per Pande's request. Could use a little further testing to ensure it
doesn't break anything (shouldn't though). My initial rebuild shows 100%
CPU usage on every core. Yay compile speed and long rambling commit
details :D
  • Loading branch information
gerbilOFdoom committed Mar 26, 2014
1 parent 8fcd722 commit f9d1d02
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Expand Up @@ -81,6 +81,7 @@ if(WIN32)
if(WIN64)
if(MSVC)
set(SharedDefines "WIN64" "_CRT_SECURE_NO_WARNINGS")

else(MSVC)
set(SharedDefines "WIN64")
endif(MSVC)
Expand Down Expand Up @@ -150,8 +151,9 @@ set(ReleaseDefines "FINAL_BUILD")

# Add projects
add_subdirectory(${MPDir})
set(CMAKE_C_FLAGS_DEBUG "/D_DEBUG /MDd /ZI /Ob0 /Od /RTC1" CACHE STRING "flags" FORCE )
set(CMAKE_CXX_FLAGS_DEBUG "/D_DEBUG /MDd /ZI /Ob0 /Od /RTC1" CACHE STRING "flags" FORCE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP" CACHE STRING "flags" FORCE)
set(CMAKE_C_FLAGS_DEBUG "/D_DEBUG /MP /MDd /ZI /Ob0 /Od /RTC1" CACHE STRING "flags" FORCE )
set(CMAKE_CXX_FLAGS_DEBUG "/D_DEBUG /MP /MDd /ZI /Ob0 /Od /RTC1" CACHE STRING "flags" FORCE)
# CPack for installer creation
# TODO: Which version are we?
set(CPACK_PACKAGE_VERSION_MAJOR "0")
Expand Down

0 comments on commit f9d1d02

Please sign in to comment.