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 /Tests/RunCMake/try_compile/other.c | |
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 'Tests/RunCMake/try_compile/other.c')
-rw-r--r-- | Tests/RunCMake/try_compile/other.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/try_compile/other.c b/Tests/RunCMake/try_compile/other.c new file mode 100644 index 0000000..6c24f10 --- /dev/null +++ b/Tests/RunCMake/try_compile/other.c @@ -0,0 +1 @@ +int other(void) { return 0; } |