Skip to content

Commit e05336d

Browse files
committed
Fix BSD build
1 parent 309f5cb commit e05336d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

CMakeLists.txt

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ set(XGLOBE_VERSION "${XGLOBE_VERSION_MAJOR}.${XGLOBE_VERSION_MINOR}.${XGLOBE_VER
99
project(xglobe
1010
VERSION ${XGLOBE_VERSION}
1111
DESCRIPTION "XGlobe is the further development of Thorsten Scheuermanns xglobe 0.5 release."
12-
HOMEPAGE_URL "https://github.com/sizeofvoid/xglobe"
13-
LANGUAGES Swift C CXX)
12+
HOMEPAGE_URL "https://github.com/sizeofvoid/xglobe")
1413

1514
if(NOT CMAKE_BUILD_TYPE)
1615
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
@@ -31,7 +30,7 @@ option(ENABLE_INSTALL_MAPS "Install default maps" ON)
3130
set(INSTALL_XGLOBE_DATA_DIR "${CMAKE_INSTALL_FULL_DATADIR}/xglobe")
3231
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
3332
set(QT5COMPONENTS Core DBus Gui Widgets)
34-
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
33+
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "BSD")
3534
set(QT5COMPONENTS Core DBus Gui Widgets X11Extras)
3635
set(X11LIBS X11 Qt5::X11Extras)
3736
find_program(XWALLPAPER_BIN xwallpaper)
@@ -81,7 +80,7 @@ target_compile_options(xglobe PRIVATE "-fexceptions")
8180

8281
set_property(TARGET xglobe PROPERTY AUTOMOC ON)
8382

84-
if (NOT XWALLPAPER_BIN AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
83+
if (NOT XWALLPAPER_BIN AND ((${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "BSD")))
8584
message(FATAL_ERROR "Missing xwallpaper, please install xwallpaper")
8685
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
8786
target_compile_definitions(xglobe PRIVATE XWALLPAPER_BIN="xglobe_wallpaper_changer")

0 commit comments

Comments
 (0)