diff options
author | Brad King <brad.king@kitware.com> | 2017-07-10 14:30:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-07-12 19:09:16 (GMT) |
commit | fda50a08437d99aba753bc84d26ba535e06e7b06 (patch) | |
tree | 0db2d7f13562b36aa1261aefc033768e8b67bc1d /Modules/CMakePushCheckState.cmake | |
parent | 1fda77d45565c3a819e6149597c3a194d9ccd0bb (diff) | |
download | CMake-fda50a08437d99aba753bc84d26ba535e06e7b06.zip CMake-fda50a08437d99aba753bc84d26ba535e06e7b06.tar.gz CMake-fda50a08437d99aba753bc84d26ba535e06e7b06.tar.bz2 |
CMakePushCheckState: Fix cmake_push_check_state RESET argument
This option was added by commit v2.8.12~138^2 (Add
cmake_reset_check_state() macro, 2013-07-28) but has never worked.
Fix the implementation to refer to macro arguments properly (not as
normal variables).
Fixes: #17048
Diffstat (limited to 'Modules/CMakePushCheckState.cmake')
-rw-r--r-- | Modules/CMakePushCheckState.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakePushCheckState.cmake b/Modules/CMakePushCheckState.cmake index 2a527d5..98eea05 100644 --- a/Modules/CMakePushCheckState.cmake +++ b/Modules/CMakePushCheckState.cmake @@ -62,7 +62,7 @@ macro(CMAKE_PUSH_CHECK_STATE) set(_CMAKE_REQUIRED_FLAGS_SAVE_${_CMAKE_PUSH_CHECK_STATE_COUNTER} ${CMAKE_REQUIRED_FLAGS}) set(_CMAKE_REQUIRED_QUIET_SAVE_${_CMAKE_PUSH_CHECK_STATE_COUNTER} ${CMAKE_REQUIRED_QUIET}) - if (ARGC GREATER 0 AND ARGV0 STREQUAL "RESET") + if (${ARGC} GREATER 0 AND "${ARGV0}" STREQUAL "RESET") cmake_reset_check_state() endif() |