[nfde] Cleanup CMakeLists to label UNIX systems generically as UNIX
This commit is contained in:
parent
987cd34df0
commit
c1c41cfc99
2
deps/nfde/CMakeLists.txt
vendored
2
deps/nfde/CMakeLists.txt
vendored
@ -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}")
|
||||
|
4
deps/nfde/src/CMakeLists.txt
vendored
4
deps/nfde/src/CMakeLists.txt
vendored
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user