Compare commits
1 Commits
6baba4cbc5
...
579f72b2b4
| Author | SHA1 | Date |
|---|---|---|
|
|
579f72b2b4 |
|
|
@ -6,6 +6,7 @@
|
||||||
.ccls-cache
|
.ccls-cache
|
||||||
CMakeCache.txt
|
CMakeCache.txt
|
||||||
CMakeFiles/
|
CMakeFiles/
|
||||||
|
Makefile
|
||||||
cmake_install.cmake
|
cmake_install.cmake
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
tags
|
tags
|
||||||
|
|
|
||||||
|
|
@ -4,18 +4,14 @@ project(can-utils LANGUAGES C)
|
||||||
|
|
||||||
message(STATUS "CMake version: ${CMAKE_VERSION}")
|
message(STATUS "CMake version: ${CMAKE_VERSION}")
|
||||||
|
|
||||||
include(CheckFunctionExists)
|
include (CheckFunctionExists)
|
||||||
include(CheckSymbolExists)
|
include (CheckSymbolExists)
|
||||||
include(GNUInstallDirs)
|
include (GNUInstallDirs)
|
||||||
|
|
||||||
if(NOT CMAKE_BUILD_TYPE)
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
set(CMAKE_BUILD_TYPE Release)
|
set(CMAKE_BUILD_TYPE Release)
|
||||||
endif()
|
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
|
# Add an option to enable treating warnings as errors
|
||||||
option(ENABLE_WERROR "Treat all compiler warnings as errors" OFF)
|
option(ENABLE_WERROR "Treat all compiler warnings as errors" OFF)
|
||||||
|
|
||||||
|
|
@ -36,8 +32,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} -DSO_TXTIME=61")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSCM_TXTIME=SO_TXTIME")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSCM_TXTIME=SO_TXTIME")
|
||||||
|
|
||||||
include_directories(.)
|
include_directories (.)
|
||||||
include_directories(./include)
|
include_directories (./include)
|
||||||
|
|
||||||
check_function_exists(fork HAVE_FORK)
|
check_function_exists(fork HAVE_FORK)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue