Commit e43d1bec authored by Aaron Bray's avatar Aaron Bray
Browse files

Enable multi file compile for MSVC

parent 81a8f85f
......@@ -19,9 +19,9 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_CONFIGURATION_TYPES "Debug" "Release" "RelWithDebInfo" CACHE STRING INTERNAL FORCE )
if(MSVC)
# Using MD as that seems to be what I run into alot, you could change these to /MT and /MTd if you want...
set(CMAKE_CXX_FLAGS_DEBUG "/D_DEBUG /MDd /Zi /Ob2 /Oi /Od /RTC1" CACHE STRING INTERNAL FORCE)
set(CMAKE_CXX_FLAGS_RELEASE "/MD" CACHE STRING INTERNAL FORCE)
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/MDd /Zi" CACHE STRING INTERNAL FORCE)
set(CMAKE_CXX_FLAGS_DEBUG "/D_DEBUG /MDd /Zi /Ob2 /Oi /Od /RTC1 /MP" CACHE STRING INTERNAL FORCE)
set(CMAKE_CXX_FLAGS_RELEASE "/MD /MP" CACHE STRING INTERNAL FORCE)
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/MDd /Zi /MP" CACHE STRING INTERNAL FORCE)
endif()
if(MINGW)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment