|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
cmake_minimum_required(VERSION 3.9) |
|
|
|
|
cmake_minimum_required(VERSION 3.20) |
|
|
|
|
|
|
|
|
|
# Make sure the user doesn't play dirty with symlinks |
|
|
|
|
get_filename_component(srcdir "${CMAKE_SOURCE_DIR}" REALPATH) |
|
|
|
@ -41,6 +41,9 @@ set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
|
|
|
|
|
include_directories(include sources sources-add GSW-C) |
|
|
|
|
add_compile_options(-Wall -Wno-deprecated-declarations) |
|
|
|
|
|
|
|
|
|
set(CONFIG_FILE "/etc/odm.conf" CACHE STRING "Path to config file") |
|
|
|
|
add_compile_options(-DCONFIGFILE="${CONFIG_FILE}") |
|
|
|
|
|
|
|
|
|
# Dwarf-4 support check |
|
|
|
|
include(CheckCXXCompilerFlag) |
|
|
|
|
CHECK_CXX_COMPILER_FLAG(-gdwarf-4 COMPILER_SUPPORTS_DWARF4) |
|
|
|
|