diff options
author | Brad King <brad.king@kitware.com> | 2023-01-16 16:49:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-01-16 22:16:12 (GMT) |
commit | d4bf7d80c618930e6b88c35d271a5b0a0656bb7b (patch) | |
tree | fb9e5883e8fef2d96a3d1168946a9ad527658014 /Source/cmTryCompileCommand.cxx | |
parent | 9d9e8450a872a4a9ec1a74cc7a73df100c32c7e8 (diff) | |
download | CMake-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 'Source/cmTryCompileCommand.cxx')
-rw-r--r-- | Source/cmTryCompileCommand.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx index c70c03e..ebbb4f2 100644 --- a/Source/cmTryCompileCommand.cxx +++ b/Source/cmTryCompileCommand.cxx @@ -81,14 +81,15 @@ bool cmTryCompileCommand(std::vector<std::string> const& args, return true; } - if (cm::optional<cmTryCompileResult> compileResult = - tc.TryCompileCode(arguments, targetType)) { + cm::optional<cmTryCompileResult> compileResult = + tc.TryCompileCode(arguments, targetType); #ifndef CMAKE_BOOTSTRAP + if (compileResult && !arguments.NoLog) { if (cmConfigureLog* log = mf.GetCMakeInstance()->GetConfigureLog()) { WriteTryCompileEvent(*log, mf, *compileResult); } -#endif } +#endif // if They specified clean then we clean up what we can if (tc.SrcFileSignature) { |