summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 02a6dbd81..920488e89 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -644,11 +644,8 @@ if (UNIX AND OPTION_USE_WAYLAND)
if (NOT (CMAKE_VERSION VERSION_LESS 3.4))
pkg_get_variable(PROTOCOLS wayland-protocols pkgdatadir) # requires cmake 3.4
else()
- if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "FreeBSD")
- set(PROTOCOLS /usr/local/share/wayland-protocols)
- else ()
- set(PROTOCOLS /usr/share/wayland-protocols)
- endif (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "FreeBSD")
+ execute_process(COMMAND pkg-config --variable=pkgdatadir wayland-protocols
+ OUTPUT_VARIABLE PROTOCOLS)
endif (NOT (CMAKE_VERSION VERSION_LESS 3.4))
if (NOT(EXISTS ${PROTOCOLS}/stable/xdg-shell/xdg-shell.xml))
message(WARNING "Install necessary file ${PROTOCOLS}/stable/xdg-shell/xdg-shell.xml")