summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_compile
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-16 16:49:35 (GMT)
committerBrad King <brad.king@kitware.com>2023-01-16 22:16:12 (GMT)
commitd4bf7d80c618930e6b88c35d271a5b0a0656bb7b (patch)
treefb9e5883e8fef2d96a3d1168946a9ad527658014 /Tests/RunCMake/try_compile
parent9d9e8450a872a4a9ec1a74cc7a73df100c32c7e8 (diff)
downloadCMake-d4bf7d80c618930e6b88c35d271a5b0a0656bb7b.zip
CMake-d4bf7d80c618930e6b88c35d271a5b0a0656bb7b.tar.gz
CMake-d4bf7d80c618930e6b88c35d271a5b0a0656bb7b.tar.bz2
try_compile: Add a NO_LOG option to skip recording in the configure log
Diffstat (limited to 'Tests/RunCMake/try_compile')
-rw-r--r--Tests/RunCMake/try_compile/ConfigureLog.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/try_compile/ConfigureLog.cmake b/Tests/RunCMake/try_compile/ConfigureLog.cmake
index 4502d24..511ade9 100644
--- a/Tests/RunCMake/try_compile/ConfigureLog.cmake
+++ b/Tests/RunCMake/try_compile/ConfigureLog.cmake
@@ -7,5 +7,10 @@ try_compile(COMPILE_RESULT
try_compile(COMPILE_RESULT
SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/ConfigureLog-test.c
+ NO_LOG
+ )
+
+try_compile(COMPILE_RESULT
+ SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/ConfigureLog-test.c
LOG_DESCRIPTION "Source that should compile."
)