From c1c41cfc99e8b521d3d687ced6b8ef75901fecb6 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 9 Aug 2023 00:06:37 -0500 Subject: [PATCH] [nfde] Cleanup CMakeLists to label UNIX systems generically as UNIX --- deps/nfde/CMakeLists.txt | 2 +- deps/nfde/src/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/nfde/CMakeLists.txt b/deps/nfde/CMakeLists.txt index ece9aad9..13712040 100644 --- a/deps/nfde/CMakeLists.txt +++ b/deps/nfde/CMakeLists.txt @@ -11,7 +11,7 @@ if(WIN32) elseif(APPLE) set(nfd_PLATFORM PLATFORM_MACOS) elseif(UNIX AND NOT APPLE) - set(nfd_PLATFORM PLATFORM_LINUX) + set(nfd_PLATFORM PLATFORM_UNIX) endif() message("nfd Platform: ${nfd_PLATFORM}") diff --git a/deps/nfde/src/CMakeLists.txt b/deps/nfde/src/CMakeLists.txt index 1c7565e6..7915cdfe 100644 --- a/deps/nfde/src/CMakeLists.txt +++ b/deps/nfde/src/CMakeLists.txt @@ -10,7 +10,7 @@ if(nfd_PLATFORM STREQUAL PLATFORM_WIN32) list(APPEND SOURCE_FILES nfd_win.cpp) endif() -if(nfd_PLATFORM STREQUAL PLATFORM_LINUX) +if(nfd_PLATFORM STREQUAL PLATFORM_UNIX) find_package(PkgConfig REQUIRED) # for Linux, we support GTK3 and xdg-desktop-portal option(NFD_PORTAL "Use xdg-desktop-portal instead of GTK" OFF) @@ -37,7 +37,7 @@ add_library(${TARGET_NAME} target_include_directories(${TARGET_NAME} PUBLIC include/) -if(nfd_PLATFORM STREQUAL PLATFORM_LINUX) +if(nfd_PLATFORM STREQUAL PLATFORM_UNIX) if(NOT NFD_PORTAL) target_link_libraries(${TARGET_NAME} PRIVATE PkgConfig::GTK3)