Skip to content

Commit

Permalink
cmake: add messages about usages of vendored libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Jan 6, 2025
1 parent 6e0779c commit 6609d60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ find_library(SDL2_LIBRARY SDL2)
find_package_handle_standard_args(SDL2 DEFAULT_MSG SDL2_LIBRARY SDL2_INCLUDE_DIR)

if(NOT SDL2_FOUND AND WIN32)
message(STATUS "Using vendored SDL2 library")
set(SDL2_FOUND TRUE)
set(SDL2_DIR "${SRC}/Windows/SDL2")
set(SDL2_INCLUDE_DIR "${SDL2_DIR}/include")
Expand All @@ -529,6 +530,7 @@ if(PROJECT_VKQUAKE)
find_package(Vulkan)

if(NOT Vulkan_FOUND AND WIN32)
message(STATUS "Using vendored Vulkan library")
set(Vulkan_FOUND TRUE)
set(VULKAN_DIR "${SRC}/Windows/misc")
set(Vulkan_INCLUDE_DIR "${VULKAN_DIR}/include")
Expand Down Expand Up @@ -649,6 +651,7 @@ function(FIND_CODEC)
find_package_handle_standard_args(${CODEC} DEFAULT_MSG ${CODEC}_LIBRARY ${CODEC}_INCLUDE_DIR)

if(NOT ${CODEC}_FOUND AND WIN32)
message(STATUS "Using vendored ${CODEC} library")
set(${CODEC}_FOUND TRUE)
set(CODECS_DIR "${SRC}/Windows/codecs")
set(${CODEC}_INCLUDE_DIR "${CODECS_DIR}/include")
Expand Down

0 comments on commit 6609d60

Please sign in to comment.