summaryrefslogtreecommitdiffstats
path: root/Source/cmCoreTryCompile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-07-29 18:56:00 (GMT)
committerBrad King <brad.king@kitware.com>2022-08-02 12:04:21 (GMT)
commit067ba3a2bd1ce168b2867de74d2ea6b944a936fc (patch)
tree8a8cdfb134a09085495488059e1bb1ece246589c /Source/cmCoreTryCompile.h
parent781e1b191a812e3f808ce272baaaa0689d30d953 (diff)
downloadCMake-067ba3a2bd1ce168b2867de74d2ea6b944a936fc.zip
CMake-067ba3a2bd1ce168b2867de74d2ea6b944a936fc.tar.gz
CMake-067ba3a2bd1ce168b2867de74d2ea6b944a936fc.tar.bz2
cmCoreTryCompile: Move target type selection logic to try_compile
This is specific to `try_compile` since `try_run` always needs an executable. Move the logic out of the common code path.
Diffstat (limited to 'Source/cmCoreTryCompile.h')
-rw-r--r--Source/cmCoreTryCompile.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmCoreTryCompile.h b/Source/cmCoreTryCompile.h
index 1e70293..6ca08e8 100644
--- a/Source/cmCoreTryCompile.h
+++ b/Source/cmCoreTryCompile.h
@@ -30,7 +30,8 @@ public:
* commands, such as TryRun can access the same logic without
* duplication.
*/
- bool TryCompileCode(std::vector<std::string> const& argv, bool isTryRun);
+ bool TryCompileCode(std::vector<std::string> const& argv,
+ cmStateEnums::TargetType targetType);
/**
* This deletes all the files created by TryCompileCode.