aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/try-compile/CMakeLists.txt
blob: 1d1d93a33ae5a732d5897c282782dc513c61c134 (plain)
1
2
3
4
5
6
7
8
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()