vcpkg/scripts/test_ports/try-compile/portfile.cmake
Alexander Neumann 9c0956e573
[world rebuild|toolchain] Fix try compile handling (#24493)
while playing with qtbase on x64-uwp i found that it could not pass a
try_compile command since important variables are not correctly
forwarded. As such I concluded that the handling of try_compile in vcpkg
is completely wrong.
2024-06-19 14:38:36 -07:00

9 lines
225 B
CMake

string(APPEND VCPKG_C_FLAGS " -DVCPKG_LET_ME_PASS")
string(APPEND VCPKG_CXX_FLAGS " -DVCPKG_LET_ME_PASS")
vcpkg_cmake_configure(
SOURCE_PATH "${CMAKE_CURRENT_LIST_DIR}"
)
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)