aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/try-compile/CMakeLists.txt
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/scripts/test_ports/try-compile/CMakeLists.txt
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/scripts/test_ports/try-compile/CMakeLists.txt')
-rw-r--r--vcpkg/scripts/test_ports/try-compile/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/try-compile/CMakeLists.txt b/vcpkg/scripts/test_ports/try-compile/CMakeLists.txt
new file mode 100644
index 0000000..1d1d93a
--- /dev/null
+++ b/vcpkg/scripts/test_ports/try-compile/CMakeLists.txt
@@ -0,0 +1,9 @@
+cmake_minimum_required(VERSION 3.25)
+
+project(try-compile-test LANGUAGES C CXX)
+
+try_compile(result PROJECT test-try-compile SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/try")
+
+if(NOT result)
+ message(FATAL_ERROR "Compiler flags are not passed consistently to try_compile!")
+endif() \ No newline at end of file