diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2021-08-03 17:24:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-08-20 13:35:12 (GMT) |
commit | b9698f89df275a33b01cfc7b4f88a510ad9d8bbe (patch) | |
tree | 6609ec5fea7d0bf37125bb1ad1e8b86a05cea0bd /Tests | |
parent | 5469c71a824880eb646a0003cb001c58f24f9cce (diff) | |
download | CMake-b9698f89df275a33b01cfc7b4f88a510ad9d8bbe.zip CMake-b9698f89df275a33b01cfc7b4f88a510ad9d8bbe.tar.gz CMake-b9698f89df275a33b01cfc7b4f88a510ad9d8bbe.tar.bz2 |
cmake_host_system_information: Make it available for all systems
Before it was Linux only.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/RunCMake/cmake_host_system_information/RunCMakeTest.cmake | 16 |
2 files changed, 7 insertions, 11 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt index 543ad1d..eb2c2d9 100644 --- a/Tests/RunCMake/CMakeLists.txt +++ b/Tests/RunCMake/CMakeLists.txt @@ -349,7 +349,7 @@ if(NOT CMake_TEST_EXTERNAL_CMAKE) endif() add_RunCMake_test(execute_process) add_RunCMake_test(export) -add_RunCMake_test(cmake_host_system_information -DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME}) +add_RunCMake_test(cmake_host_system_information) add_RunCMake_test(cmake_language) add_RunCMake_test(cmake_minimum_required) add_RunCMake_test(cmake_parse_arguments) diff --git a/Tests/RunCMake/cmake_host_system_information/RunCMakeTest.cmake b/Tests/RunCMake/cmake_host_system_information/RunCMakeTest.cmake index 7462f7a..189013f 100644 --- a/Tests/RunCMake/cmake_host_system_information/RunCMakeTest.cmake +++ b/Tests/RunCMake/cmake_host_system_information/RunCMakeTest.cmake @@ -7,15 +7,11 @@ run_cmake(BadArg3) run_cmake(QueryList) run_cmake(QueryKeys) -if (CMAKE_SYSTEM_NAME MATCHES "Linux") +run_cmake(UnitTest) +run_cmake(Exherbo) +run_cmake(Ubuntu) - run_cmake_with_options(UnitTest) - run_cmake_with_options(Exherbo) - run_cmake_with_options(Ubuntu) +run_cmake(CentOS6) +run_cmake(Debian6) - run_cmake_with_options(CentOS6) - run_cmake_with_options(Debian6) - - run_cmake_with_options(UserFallbackScript) - -endif() +run_cmake(UserFallbackScript) |