summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_compile
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-10-16 15:28:41 (GMT)
committerBrad King <brad.king@kitware.com>2023-10-16 15:30:17 (GMT)
commitdc0dbffb0ffbfa7713b2b96994c453a90a99e209 (patch)
tree6825e9ee621cdb2bf11fb94d4ad5ad6a2f59fc0e /Tests/RunCMake/try_compile
parentee5f31ba727e392e1ebc9f5be54c74ac1868d029 (diff)
downloadCMake-dc0dbffb0ffbfa7713b2b96994c453a90a99e209.zip
CMake-dc0dbffb0ffbfa7713b2b96994c453a90a99e209.tar.gz
CMake-dc0dbffb0ffbfa7713b2b96994c453a90a99e209.tar.bz2
Tests: Remove redundant policy setting from RunCMake.try_{compile,run} cases
Since commit 1edf138506 (Tests/RunCMake: Update cmake_minimum_required versions, 2023-02-06, v3.27.0-rc1~508^2~1) policy CMP0054 is automatically set to NEW in these tests.
Diffstat (limited to 'Tests/RunCMake/try_compile')
-rw-r--r--Tests/RunCMake/try_compile/LinkOptions.cmake3
1 files changed, 0 insertions, 3 deletions
diff --git a/Tests/RunCMake/try_compile/LinkOptions.cmake b/Tests/RunCMake/try_compile/LinkOptions.cmake
index 7fae35c..45cbedf 100644
--- a/Tests/RunCMake/try_compile/LinkOptions.cmake
+++ b/Tests/RunCMake/try_compile/LinkOptions.cmake
@@ -1,8 +1,5 @@
-
enable_language(C)
-cmake_policy(SET CMP0054 NEW)
-
set (lib_name "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}lib${CMAKE_STATIC_LIBRARY_SUFFIX}")
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
if (RunCMake_C_COMPILER_ID STREQUAL "MSVC"