diff options
author | Brad King <brad.king@kitware.com> | 2016-02-19 18:23:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-02-19 19:07:38 (GMT) |
commit | 7f1bd9fe6910f7633d98dec018cc01331a46b87e (patch) | |
tree | d7f1e58c327d7aecd6ce861b6cd6b3c65c8bff71 /Source/cmCoreTryCompile.h | |
parent | 509b1f08ea3ee1d8063efc81fee851ee075b3c97 (diff) | |
download | CMake-7f1bd9fe6910f7633d98dec018cc01331a46b87e.zip CMake-7f1bd9fe6910f7633d98dec018cc01331a46b87e.tar.gz CMake-7f1bd9fe6910f7633d98dec018cc01331a46b87e.tar.bz2 |
try_compile: Add option to control type of target
Create a `CMAKE_TRY_COMPILE_TARGET_TYPE` option to specify use
of `add_library(... STATIC ...)` for the generated test project.
This will be useful for cross-compiling toolchains that cannot
link a binary without custom flags or scripts.
Diffstat (limited to 'Source/cmCoreTryCompile.h')
-rw-r--r-- | Source/cmCoreTryCompile.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCoreTryCompile.h b/Source/cmCoreTryCompile.h index 3272462..c2beea8 100644 --- a/Source/cmCoreTryCompile.h +++ b/Source/cmCoreTryCompile.h @@ -30,7 +30,7 @@ public: * commands, such as TryRun can access the same logic without * duplication. */ - int TryCompileCode(std::vector<std::string> const& argv); + int TryCompileCode(std::vector<std::string> const& argv, bool isTryRun); /** * This deletes all the files created by TryCompileCode. @@ -44,8 +44,8 @@ public: TryCompileCode. The result is stored in OutputFile. If nothing is found, the error message is stored in FindErrorMessage. */ - void FindOutputFile(const std::string& targetName); - + void FindOutputFile(const std::string& targetName, + cmState::TargetType targetType); cmTypeMacro(cmCoreTryCompile, cmCommand); |