1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-24 03:02:46 +08:00

Tests/RunCMake: Enable CMP0182 in test cases on AIX

Improve coverage of CMP0182's NEW behavior by enabling it in a large
number of CMake's tests, but not in all of them, so that the OLD
behavior remains covered by some tests too.

Issue: #26372
This commit is contained in:
Brad King
2024-11-22 14:20:56 -05:00
parent 5c78623143
commit 2c22aae14b

View File

@@ -113,6 +113,9 @@ function(run_cmake test)
if(RunCMake_TEST_LCC AND NOT RunCMake_TEST_NO_CMP0129) if(RunCMake_TEST_LCC AND NOT RunCMake_TEST_NO_CMP0129)
list(APPEND RunCMake_TEST_OPTIONS -DCMAKE_POLICY_DEFAULT_CMP0129=NEW) list(APPEND RunCMake_TEST_OPTIONS -DCMAKE_POLICY_DEFAULT_CMP0129=NEW)
endif() endif()
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "AIX")
list(APPEND RunCMake_TEST_OPTIONS -DCMAKE_POLICY_DEFAULT_CMP0182=NEW)
endif()
if(RunCMake_MAKE_PROGRAM) if(RunCMake_MAKE_PROGRAM)
list(APPEND RunCMake_TEST_OPTIONS "-DCMAKE_MAKE_PROGRAM=${RunCMake_MAKE_PROGRAM}") list(APPEND RunCMake_TEST_OPTIONS "-DCMAKE_MAKE_PROGRAM=${RunCMake_MAKE_PROGRAM}")
endif() endif()