diff --git a/CMakeLists.txt b/CMakeLists.txt index 2924c3e44..587c3dacd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,6 +79,9 @@ if (enable-gdk-pixbuf) else() message(STATUS "Building without gdk-pixbuf, only png images supported.") endif() +if(enable-binding-event) + add_definitions(-DSWAY_BINDING_EVENT=1) +endif() include_directories(include) @@ -114,9 +117,6 @@ if(enable-swaylock) message(WARNING "Not building swaylock - cairo, pango, and PAM are required.") endif() endif() -if(enable-binding-event) - add_definitions(-DSWAY_BINDING_EVENT=1) -endif() install( FILES ${CMAKE_CURRENT_SOURCE_DIR}/sway.desktop