diff options
author | Ron Economos <w6rz@comcast.net> | 2021-12-03 11:49:08 -0800 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-12-03 16:00:35 -0500 |
commit | e19180f30efb6342e27fe4c09d6fb0df0529767c (patch) | |
tree | 75bf63870b79b7f6fe67c9d6454b703e6093ee27 /cmake | |
parent | f37a98b95af12603c4564f61707672570b3cce06 (diff) |
cmake: Remove warnings from GrTest.cmake
Signed-off-by: Ron Economos <w6rz@comcast.net>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/GrTest.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/Modules/GrTest.cmake b/cmake/Modules/GrTest.cmake index 9d75ece646..ec2716293b 100644 --- a/cmake/Modules/GrTest.cmake +++ b/cmake/Modules/GrTest.cmake @@ -104,7 +104,7 @@ function(GR_ADD_TEST test_name) file(APPEND ${sh_file} "export ${environ}\n") endforeach(environ) #load the command to run with its arguments - endif(CMAKE_CROSSCOMPILING) + endif(NOT CMAKE_CROSSCOMPILING) foreach(arg ${ARGN}) file(APPEND ${sh_file} "${arg} ") endforeach(arg) @@ -163,7 +163,7 @@ function(GR_ADD_CPP_TEST test_name test_source) set_target_properties(${test_name} PROPERTIES COMPILE_DEFINITIONS "BOOST_TEST_DYN_LINK;BOOST_TEST_MAIN" ) - IF (NOT CMAKE_CROSSCOMPILING) + if (NOT CMAKE_CROSSCOMPILING) GR_ADD_TEST(${test_name} ${test_name}) - ENDIF(CMAKE_CROSSCOMPILING) + endif(NOT CMAKE_CROSSCOMPILING) endfunction(GR_ADD_CPP_TEST) |