Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cmake: set fallback X11_FOUND to false for mac/win builds
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Jun 5, 2023
1 parent 33099b1 commit 6c5b06f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Expand Up @@ -20,9 +20,12 @@ set_property(GLOBAL PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
find_package(PkgConfig REQUIRED)
find_package(Qt5 COMPONENTS REQUIRED Core Widgets)

if(NOT (APPLE OR WIN32))
if(NOT (APPLE OR MINGW OR WIN32))
find_package(X11 REQUIRED)
find_package(Qt5 COMPONENTS REQUIRED X11Extras)
else()
set(X11_FOUND FALSE)
mark_as_advanced(X11_FOUND)
endif()

#######################################################################################################################
Expand Down

0 comments on commit 6c5b06f

Please sign in to comment.