summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-07-14 12:22:23 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-07-14 12:22:27 (GMT)
commit652b2956c85987300fe0092ecf476fe305e2aecd (patch)
tree0f285cca0ff1e88768065bc197b2955d269c3806 /Modules
parent52db8d55e8418ba29df8cf108c789fa909a4398e (diff)
parentfda50a08437d99aba753bc84d26ba535e06e7b06 (diff)
downloadCMake-652b2956c85987300fe0092ecf476fe305e2aecd.zip
CMake-652b2956c85987300fe0092ecf476fe305e2aecd.tar.gz
CMake-652b2956c85987300fe0092ecf476fe305e2aecd.tar.bz2
Merge topic 'CMakePushCheckState-fix-RESET'
fda50a08 CMakePushCheckState: Fix cmake_push_check_state RESET argument Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1040
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakePushCheckState.cmake2
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()