summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-23 07:42:04 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-23 07:42:04 +0200
commit4b6468a80c214b4a65dd9c23eb8de0c39bfdbb25 (patch)
tree5f0ec82cc46a1a28f7af66ff083935301ace4f8c
parent8bbedd65a8c0128ce66d83a17bca2e5027c000b5 (diff)
Wayland: process OPTION_USE_WAYLAND for Unix only
-rw-r--r--src/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9376a02c7..91d4f5f17 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -622,7 +622,7 @@ if (USE_XFT)
endif (LIB_fontconfig)
endif (USE_XFT)
-if (OPTION_USE_WAYLAND)
+if (UNIX AND OPTION_USE_WAYLAND)
if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "FreeBSD")
set(PROTOCOLS /usr/local/share/wayland-protocols)
else ()
@@ -674,7 +674,7 @@ if (OPTION_USE_WAYLAND)
if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux" AND NOT OPTION_BUILD_SHARED_LIBS)
list (APPEND OPTIONAL_LIBS "-no-pie")
endif (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux" AND NOT OPTION_BUILD_SHARED_LIBS)
-endif (OPTION_USE_WAYLAND)
+endif (UNIX AND OPTION_USE_WAYLAND)
#######################################################################