diff options
author | Cristian Adam <cristian.adam@gmail.com> | 2019-07-29 17:33:55 (GMT) |
---|---|---|
committer | Cristian Adam <cristian.adam@gmail.com> | 2019-08-30 18:39:32 (GMT) |
commit | 1353802af366bd64ba8f730e6f93d4c416107d48 (patch) | |
tree | c721c50d768012fc631160aad6de8e51a19d029a /Tests/RunCMake/VS10Project/RunCMakeTest.cmake | |
parent | 8dfeb5d278625c55be1cc82399d29c0305ee4438 (diff) | |
download | CMake-1353802af366bd64ba8f730e6f93d4c416107d48.zip CMake-1353802af366bd64ba8f730e6f93d4c416107d48.tar.gz CMake-1353802af366bd64ba8f730e6f93d4c416107d48.tar.bz2 |
Unity build: Add unit tests
Diffstat (limited to 'Tests/RunCMake/VS10Project/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/VS10Project/RunCMakeTest.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/VS10Project/RunCMakeTest.cmake b/Tests/RunCMake/VS10Project/RunCMakeTest.cmake index 72154e7..dcdd177 100644 --- a/Tests/RunCMake/VS10Project/RunCMakeTest.cmake +++ b/Tests/RunCMake/VS10Project/RunCMakeTest.cmake @@ -34,3 +34,12 @@ endif() if(CMAKE_C_COMPILER_ID STREQUAL "MSVC" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 19.20) run_cmake(VsSpectreMitigation) endif() + +# Visual Studio 2017 has toolset version 141 +string(REPLACE "v" "" generator_toolset "${RunCMake_GENERATOR_TOOLSET}") +if (RunCMake_GENERATOR MATCHES "Visual Studio 1[0-4] 201[0-5]" OR + (RunCMake_GENERATOR_TOOLSET AND generator_toolset VERSION_LESS "141")) + run_cmake(UnityBuildPre2017) +else() + run_cmake(UnityBuildNative) +endif() |