diff options
author | Brad King <brad.king@kitware.com> | 2019-02-20 13:53:33 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-02-20 13:53:41 (GMT) |
commit | 85d779442bbc9376a0c71f0dc8f42d0df52c11d4 (patch) | |
tree | f2e83910a00095d2125d0fd47caa1dc3384dc28c /Modules/CMakeDetermineVSServicePack.cmake | |
parent | 18ff514b52600a6fb37ca6fd7d38e7e3aac7129b (diff) | |
parent | b186329d3db0083d77e61ded709f4e70a596631d (diff) | |
download | CMake-85d779442bbc9376a0c71f0dc8f42d0df52c11d4.zip CMake-85d779442bbc9376a0c71f0dc8f42d0df52c11d4.tar.gz CMake-85d779442bbc9376a0c71f0dc8f42d0df52c11d4.tar.bz2 |
Merge topic 'asm-no-slash-question'
b186329d3d Use -? instead of /? to test compiler for MSVC-like command-line support
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2984
Diffstat (limited to 'Modules/CMakeDetermineVSServicePack.cmake')
-rw-r--r-- | Modules/CMakeDetermineVSServicePack.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineVSServicePack.cmake b/Modules/CMakeDetermineVSServicePack.cmake index 9edc309..a3c4d9c 100644 --- a/Modules/CMakeDetermineVSServicePack.cmake +++ b/Modules/CMakeDetermineVSServicePack.cmake @@ -79,7 +79,7 @@ endfunction() function(_DetermineVSServicePack_FastCheckVersionWithCompiler _SUCCESS_VAR _VERSION_VAR) if(EXISTS ${CMAKE_CXX_COMPILER}) execute_process( - COMMAND ${CMAKE_CXX_COMPILER} /? + COMMAND ${CMAKE_CXX_COMPILER} -? ERROR_VARIABLE _output OUTPUT_QUIET ) |