mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
UnGNUify the codebase
This commit is contained in:
parent
74d4f1bec9
commit
9aed9d9359
84 changed files with 123 additions and 33 deletions
|
|
@ -7,9 +7,6 @@ set(CMAKE_C_STANDARD 99)
|
|||
set(CMAKE_C_EXTENSIONS OFF)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
|
||||
add_definitions(
|
||||
-D_GNU_SOURCE
|
||||
)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-parameter")
|
||||
|
|
@ -70,14 +67,6 @@ find_package(PAM)
|
|||
|
||||
find_package(LibInput REQUIRED)
|
||||
|
||||
find_package(Backtrace)
|
||||
if(Backtrace_FOUND)
|
||||
include_directories("${Backtrace_INCLUDE_DIRS}")
|
||||
add_definitions(-DSWAY_Backtrace_FOUND=1)
|
||||
set(LINK_LIBRARIES, "${LINK_LIBRARIES} ${Backtrace_LIBRARIES}")
|
||||
set(SWAY_Backtrace_HEADER "${Backtrace_HEADER}")
|
||||
endif()
|
||||
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
|
||||
find_package(EpollShim REQUIRED)
|
||||
endif (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue