From 1d5277c27b744261af38120400d32229628b3b32 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 18 Jan 2022 02:56:12 -0500 Subject: [PATCH] more devendoring fixes --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f6c83e692..64aaaf945 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,8 @@ if (NOT DEVENDOR_LIBRARIES) add_subdirectory(extern/zlib EXCLUDE_FROM_ALL) include_directories(extern/zlib ${CMAKE_CURRENT_BINARY_DIR}/extern/zlib) +else() + find_library(HAVE_Z z) endif() if (DEVENDOR_LIBRARIES) @@ -38,7 +40,7 @@ if (DEVENDOR_LIBRARIES) include_directories(extern/imgui extern/IconFontCppHeaders extern/imgui/backends extern/igfd ${SDL_INCLUDE_DIR}) else() find_package(SDL2 REQUIRED) - set(HAVE_SDL2 ${SDL2_LIBRARY}) + set(HAVE_SDL2 ${SDL2_LIBRARIES}) include_directories(extern/imgui extern/IconFontCppHeaders extern/imgui/backends extern/igfd ${SDL2_INCLUDE_DIRS}) endif() find_library(HAVE_JACK jack)