diff options
Diffstat (limited to 'vcpkg/scripts/test_ports/try-compile/CMakeLists.txt')
| -rw-r--r-- | vcpkg/scripts/test_ports/try-compile/CMakeLists.txt | 9 |
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 |