Skip to content

Commit

Permalink
Rename CMake cache variable
Browse files Browse the repository at this point in the history
  • Loading branch information
esnosy committed Apr 27, 2023
1 parent 7d2393f commit 3b859ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)

set(USE_X11_NOT_WAYLAND NO CACHE BOOL "Use X11 instead of Wayland on Linux")
set(FORCE_X11_ON_LINUX NO CACHE BOOL "Use X11 instead of Wayland on Linux")

add_library(minimal_window)
target_include_directories(minimal_window PUBLIC include)
Expand All @@ -21,7 +21,7 @@ if(WIN32)
target_sources(minimal_window PRIVATE win32.c)

elseif(UNIX AND NOT APPLE)
if(USE_X11_NOT_WAYLAND)
if(FORCE_X11_ON_LINUX)
setup_x11()

else()
Expand Down

0 comments on commit 3b859ba

Please sign in to comment.