llvm.org GIT mirror llvm / c923d84
[CMake] Cleanup version check for 2.8.11 We are always greater than CMake 2.8.11, so we don't need this check. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272220 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman 4 years ago
1 changed file(s) with 6 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
226226
227227 include(ChooseMSVCCRT)
228228
229 if( NOT (${CMAKE_VERSION} VERSION_LESS 2.8.11) )
230 # set stack reserved size to ~10MB
231 # CMake previously automatically set this value for MSVC builds, but the
232 # behavior was changed in CMake 2.8.11 (Issue 12437) to use the MSVC default
233 # value (1 MB) which is not enough for us in tasks such as parsing recursive
234 # C++ templates in Clang.
235 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:10000000")
236 endif()
229 # set stack reserved size to ~10MB
230 # CMake previously automatically set this value for MSVC builds, but the
231 # behavior was changed in CMake 2.8.11 (Issue 12437) to use the MSVC default
232 # value (1 MB) which is not enough for us in tasks such as parsing recursive
233 # C++ templates in Clang.
234 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:10000000")
237235
238236 if( MSVC11 )
239237 add_llvm_definitions(-D_VARIADIC_MAX=10)