summaryrefslogtreecommitdiffstats
path: root/Modules/CheckIPOSupported/CMakeLists-C.txt.in
diff options
context:
space:
mode:
authorRuslan Baratov <ruslan_baratov@yahoo.com>2017-03-07 12:18:28 (GMT)
committerRuslan Baratov <ruslan_baratov@yahoo.com>2017-03-11 11:46:25 (GMT)
commitfdb2ba2521998397d97d466b10a8ac2458363625 (patch)
tree14c2d5cec41cb22d3dcd64aa23e4d9cbdd2001ee /Modules/CheckIPOSupported/CMakeLists-C.txt.in
parent0b2438118ad93479de09f0d7a0e9b77859f9a9c3 (diff)
downloadCMake-fdb2ba2521998397d97d466b10a8ac2458363625.zip
CMake-fdb2ba2521998397d97d466b10a8ac2458363625.tar.gz
CMake-fdb2ba2521998397d97d466b10a8ac2458363625.tar.bz2
CheckIPOSupported: New module to check for compiler/cmake IPO support
Diffstat (limited to 'Modules/CheckIPOSupported/CMakeLists-C.txt.in')
-rw-r--r--Modules/CheckIPOSupported/CMakeLists-C.txt.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/CheckIPOSupported/CMakeLists-C.txt.in b/Modules/CheckIPOSupported/CMakeLists-C.txt.in
new file mode 100644
index 0000000..d20f31f
--- /dev/null
+++ b/Modules/CheckIPOSupported/CMakeLists-C.txt.in
@@ -0,0 +1,8 @@
+cmake_minimum_required(VERSION "@CMAKE_VERSION@")
+project("@TRY_COMPILE_PROJECT_NAME@" LANGUAGES C)
+
+# TODO: IPO policy
+
+add_library(foo foo.c)
+add_executable(boo main.c)
+target_link_libraries(boo PUBLIC foo)