Compare commits
6 Commits
6d53a8c571
...
7bcc46dacb
| Author | SHA1 | Date |
|---|---|---|
|
|
7bcc46dacb | |
|
|
a24bff8b08 | |
|
|
fe9ea67814 | |
|
|
6050aa155d | |
|
|
302184f383 | |
|
|
c542c9ada7 |
|
|
@ -6,7 +6,6 @@
|
|||
.ccls-cache
|
||||
CMakeCache.txt
|
||||
CMakeFiles/
|
||||
Makefile
|
||||
cmake_install.cmake
|
||||
compile_commands.json
|
||||
tags
|
||||
|
|
|
|||
|
|
@ -4,14 +4,18 @@ project(can-utils LANGUAGES C)
|
|||
|
||||
message(STATUS "CMake version: ${CMAKE_VERSION}")
|
||||
|
||||
include (CheckFunctionExists)
|
||||
include (CheckSymbolExists)
|
||||
include (GNUInstallDirs)
|
||||
include(CheckFunctionExists)
|
||||
include(CheckSymbolExists)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
endif()
|
||||
|
||||
if(CMAKE_EXPORT_COMPILE_COMMANDS STREQUAL "")
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "project default" FORCE)
|
||||
endif()
|
||||
|
||||
# Add an option to enable treating warnings as errors
|
||||
option(ENABLE_WERROR "Treat all compiler warnings as errors" OFF)
|
||||
|
||||
|
|
@ -32,8 +36,8 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCLOCK_TAI=11")
|
|||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSO_TXTIME=61")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSCM_TXTIME=SO_TXTIME")
|
||||
|
||||
include_directories (.)
|
||||
include_directories (./include)
|
||||
include_directories(.)
|
||||
include_directories(./include)
|
||||
|
||||
check_function_exists(fork HAVE_FORK)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue