CMake: link to vcpkg packages by default.
@@ -31,7 +31,7 @@ else()
message(FATAL_ERROR "Unknown option for LIBTCOD_ZLIB: '${LIBTCOD_ZLIB}'")
endif()
-set(LIBTCOD_GLAD "vendored" CACHE STRING "How this library will be linked.")
+set(LIBTCOD_GLAD "find_package" CACHE STRING "How this library will be linked.")
set_property(CACHE LIBTCOD_GLAD PROPERTY STRINGS "vendored" "find_package")
if(LIBTCOD_GLAD STREQUAL "find_package")
find_package(glad CONFIG REQUIRED)
@@ -44,7 +44,7 @@ else()
message(FATAL_ERROR "Unknown option for LIBTCOD_GLAD: '${LIBTCOD_GLAD}'")
endif()
-set(LIBTCOD_LODEPNG "vendored" CACHE STRING "How this library will be linked.")
+set(LIBTCOD_LODEPNG "find_package" CACHE STRING "How this library will be linked.")
set_property(CACHE LIBTCOD_LODEPNG PROPERTY STRINGS "vendored" "find_package")
if(LIBTCOD_LODEPNG STREQUAL "find_package")
find_package(lodepng-c CONFIG REQUIRED)
@@ -57,7 +57,7 @@ else()
message(FATAL_ERROR "Unknown option for LIBTCOD_LODEPNG: '${LIBTCOD_LODEPNG}'")
endif()
-set(LIBTCOD_UTF8PROC "vendored" CACHE STRING "How this library will be linked.")
+set(LIBTCOD_UTF8PROC "vcpkg" CACHE STRING "How this library will be linked.")
set_property(CACHE LIBTCOD_UTF8PROC PROPERTY STRINGS "vendored" "vcpkg")
if(LIBTCOD_UTF8PROC STREQUAL "vendored")
message("Will be vendored: utf8proc")
@@ -81,7 +81,7 @@ else()
message(FATAL_ERROR "Unknown option for LIBTCOD_UTF8PROC: '${LIBTCOD_UTF8PROC}'")
endif()
-set(LIBTCOD_STB "vendored" CACHE STRING "How this library will be linked.")
+set(LIBTCOD_STB "vcpkg" CACHE STRING "How this library will be linked.")
set_property(CACHE LIBTCOD_STB PROPERTY STRINGS "vendored" "vcpkg")
if(LIBTCOD_STB STREQUAL "vendored")
message("Will be vendored: stb")
