diff options
author | Brad King <brad.king@kitware.com> | 2015-11-18 15:43:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-11-18 15:43:56 (GMT) |
commit | ce7da2dec4939b56128f7d05d008069d44ec506b (patch) | |
tree | 01d4b634ec98b160e5087d404ec8b78b0bf1f57f | |
parent | e32c903057774ba34de7ed2292b6156f9cf58c5e (diff) | |
parent | b5e7b22defa353894ad999df83b90ae45f163d61 (diff) | |
download | CMake-ce7da2dec4939b56128f7d05d008069d44ec506b.zip CMake-ce7da2dec4939b56128f7d05d008069d44ec506b.tar.gz CMake-ce7da2dec4939b56128f7d05d008069d44ec506b.tar.bz2 |
Merge branch 'FindGTest-avoid-CMP0064' into release
-rw-r--r-- | Modules/FindGTest.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindGTest.cmake b/Modules/FindGTest.cmake index fccf877..eb7abfd 100644 --- a/Modules/FindGTest.cmake +++ b/Modules/FindGTest.cmake @@ -124,11 +124,11 @@ function(GTEST_ADD_TESTS executable extra_args) string(REGEX MATCH "${gtest_test_type_regex}" test_type ${hit}) # Parameterized tests have a different signature for the filter - if(${test_type} STREQUAL "TEST_P") + if("x${test_type}" STREQUAL "xTEST_P") string(REGEX REPLACE ${gtest_case_name_regex} "*/\\1.\\2/*" test_name ${hit}) - elseif(${test_type} STREQUAL "TEST_F" OR ${test_type} STREQUAL "TEST") + elseif("x${test_type}" STREQUAL "xTEST_F" OR "x${test_type}" STREQUAL "xTEST") string(REGEX REPLACE ${gtest_case_name_regex} "\\1.\\2" test_name ${hit}) - elseif(${test_type} STREQUAL "TYPED_TEST") + elseif("x${test_type}" STREQUAL "xTYPED_TEST") string(REGEX REPLACE ${gtest_case_name_regex} "\\1/*.\\2" test_name ${hit}) else() message(WARNING "Could not parse GTest ${hit} for adding to CTest.") |