Skip to content

Commit 6c5b06f

Browse files
committed
cmake: set fallback X11_FOUND to false for mac/win builds
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 33099b1 commit 6c5b06f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ set_property(GLOBAL PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
2020
find_package(PkgConfig REQUIRED)
2121
find_package(Qt5 COMPONENTS REQUIRED Core Widgets)
2222

23-
if(NOT (APPLE OR WIN32))
23+
if(NOT (APPLE OR MINGW OR WIN32))
2424
find_package(X11 REQUIRED)
2525
find_package(Qt5 COMPONENTS REQUIRED X11Extras)
26+
else()
27+
set(X11_FOUND FALSE)
28+
mark_as_advanced(X11_FOUND)
2629
endif()
2730

2831
#######################################################################################################################

0 commit comments

Comments
 (0)