llvm.org GIT mirror llvm / 6e2aab6
Remove cmake module support for Visual C++ 2010 (MSVC10) but keep the MSVC11 (Visual C++ 2012) support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204706 91177308-0d34-0410-b5e6-96231b3b80d8 Yaron Keren 6 years ago
1 changed file(s) with 3 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
204204 if( LLVM_COMPILER_JOBS STREQUAL "0" )
205205 add_llvm_definitions( /MP )
206206 else()
207 if (MSVC10)
208 message(FATAL_ERROR
209 "Due to a bug in CMake only 0 and 1 is supported for "
210 "LLVM_COMPILER_JOBS when generating for Visual Studio 2010")
211 else()
212 message(STATUS "Number of parallel compiler jobs set to " ${LLVM_COMPILER_JOBS})
213 add_llvm_definitions( /MP${LLVM_COMPILER_JOBS} )
214 endif()
207 message(STATUS "Number of parallel compiler jobs set to " ${LLVM_COMPILER_JOBS})
208 add_llvm_definitions( /MP${LLVM_COMPILER_JOBS} )
215209 endif()
216210 else()
217211 message(STATUS "Parallel compilation disabled")
230224 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:10000000")
231225 endif()
232226
233 if( MSVC10 )
234 # MSVC 10 will complain about headers in the STL not being exported, but
235 # will not complain in MSVC 11.
236 add_llvm_definitions(
237 -wd4275 # Suppress 'An exported class was derived from a class that was not exported.'
238 )
239 elseif( MSVC11 )
227 if( MSVC11 )
240228 add_llvm_definitions(-D_VARIADIC_MAX=10)
241229 endif()
242230