summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-03-29 14:41:42 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-03-29 14:41:56 (GMT)
commit1ccaaaf2037e5ca736312b592e5b6d315a777821 (patch)
treecea4c1028639500a51011f4e969bbd45090455fe /Tests/RunCMake/CMakeLists.txt
parentce4acba7fbfb8d543468e8b3313104aef159ee75 (diff)
parent05e510bf0bf8d730b03e8b389d088919825b4b5a (diff)
downloadCMake-1ccaaaf2037e5ca736312b592e5b6d315a777821.zip
CMake-1ccaaaf2037e5ca736312b592e5b6d315a777821.tar.gz
CMake-1ccaaaf2037e5ca736312b592e5b6d315a777821.tar.bz2
Merge topic 'set-env-var-first-run'
05e510bf0b CMP0132: Don't set compiler environment variables on first run 774a9eb210 Tests: Reorder CMP0129 test Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7108
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index 631e949..e695844 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -142,6 +142,14 @@ if (CMAKE_SYSTEM_NAME MATCHES "(Linux|Darwin)")
endif()
add_RunCMake_test(CMP0126)
+if("${CMAKE_C_COMPILER_ID}" STREQUAL "LCC" OR
+ "${CMAKE_CXX_COMPILER_ID}" STREQUAL "LCC" OR
+ "${CMAKE_Fortran_COMPILER_ID}" STREQUAL "LCC")
+ add_RunCMake_test("CMP0129")
+endif()
+
+add_RunCMake_test(CMP0132)
+
# The test for Policy 65 requires the use of the
# CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS variable, which both the VS and Xcode
# generators ignore. The policy will have no effect on those generators.
@@ -977,7 +985,3 @@ endif()
if(WIN32)
add_RunCMake_test(Win32GenEx)
endif()
-
-if("${CMAKE_C_COMPILER_ID}" STREQUAL "LCC" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "LCC" OR "${CMAKE_Fortran_COMPILER_ID}" STREQUAL "LCC")
- add_RunCMake_test("CMP0129")
-endif()