From 5e340ce425736ea300a5bb9544329a4e33887875 Mon Sep 17 00:00:00 2001 From: izder456 <izder456@disroot.org> Date: Sun, 17 Dec 2023 10:18:35 -0600 Subject: [PATCH] fix CMake condition to allow build on OpenBSD & FreeBSD --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ae87c6e..d7f8f39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -362,7 +362,7 @@ add_subdirectory("third_party/fpattern") target_link_libraries(${EXECUTABLE_NAME} ${FPATTERN_LIBRARY}) target_include_directories(${EXECUTABLE_NAME} PRIVATE ${FPATTERN_INCLUDE_DIR}) -if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Linux") +if((NOT ${CMAKE_SYSTEM_NAME} MATCHES "Linux") AND (NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") AND (NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")) add_subdirectory("third_party/zlib") add_subdirectory("third_party/sdl2") else()