Commit 9768411c authored by jehan's avatar jehan

conditionnal compilation of exception.c

parent 7f951f6d
......@@ -198,6 +198,7 @@ endif()
check_library_exists("rt" "clock_gettime" "" HAVE_LIBRT)
check_library_exists("dl" "dladdr" "" HAVE_LIBDL)
check_include_file("execinfo.h" HAVE_EXECINFO)
add_subdirectory(include)
add_subdirectory(src)
......
......@@ -27,11 +27,13 @@ set(HEADER_FILES
map.h
port.h
vfs.h
exception.hh
)
if(ENABLE_TESTS_COMPONENT)
list(APPEND HEADER_FILES tester.h)
endif()
if(HAVE_EXECINFO)
list(APPEND HEADER_FILES exception.h)
endif()
set(BCTOOLBOX_HEADER_FILES )
foreach(HEADER_FILE ${HEADER_FILES})
......
......@@ -24,12 +24,13 @@ set(BCTOOLBOX_C_SOURCE_FILES
containers/list.c
logging/logging.c
utils/port.c
utils/exception.cc
vfs.c
)
set_source_files_properties(utils/exception.cc PROPERTIES COMPILE_FLAGS -std=c++11)
if(HAVE_EXECINFO)
set(BCTOOLBOX_CXX_SOURCE_FILES utils/exception.cc)
endif()
set(BCTOOLBOX_CXX_SOURCE_FILES containers/map.cc)
if(MBEDTLS_FOUND)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment