Commit de5b6482 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Make krita build on windows

Under some circumstances, krita's main executable is too big for
msvc to handle.
parent 7bf22a69
......@@ -8,6 +8,10 @@ if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS_KRITADEVS "-O2 -g" CACHE STRING "" FORCE)
endif(CMAKE_COMPILER_IS_GNUCXX)
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
endif(MSVC)
include(CheckFunctionExists)
macro_optional_find_package(GLEW)
......
Markdown is supported
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