diff options
author | gnieboer <gnieboer@corpcomm.net> | 2019-01-21 14:48:47 -0500 |
---|---|---|
committer | Michael Dickens <michael.dickens@ettus.com> | 2019-01-23 09:33:40 -0500 |
commit | 00260b96cd27bedf4e4661a885b4129ca73f1368 (patch) | |
tree | 4087d48bdb703f2e4568226eb0c5f4b9d5cf0c36 | |
parent | 5e44a754b9043e9a569a2bad504a6c2251dc743b (diff) |
CMake: Defines compiler version for MSVC
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e4d0584be4..bd1166b4e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,6 +230,8 @@ IF(MSVC) IF(MSVC_VERSION LESS "${MSVC_MIN_VERSION}") MESSAGE(FATAL_ERROR "MSVC Versions < minimum version ${MSVC_MIN_VERSION}") ENDIF() + SET(cmake_c_compiler_version ${MSVC_VERSION}) + SET(cmake_cxx_compiler_version ${MSVC_VERSION}) ELSE() execute_process(COMMAND ${CMAKE_C_COMPILER} --version OUTPUT_VARIABLE cmake_c_compiler_version) |