IAP GITLAB

Skip to content
Snippets Groups Projects
Commit d6c1191c authored by Lukas Nellen's avatar Lukas Nellen :footprints:
Browse files

OS X portability

- Suppress warnings when using apple clang
- Boost can be in non-default location - add to include path
parent 13316dd6
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -g") # -O2 would not trade speed for size, neither O2/3 use fast-math
# clang produces a lot of unecessary warnings without this:
add_compile_options("$<$<CXX_COMPILER_ID:Clang>:-Wno-nonportable-include-path>")
add_compile_options("$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:-Wno-nonportable-include-path>")
# unit testing coverage, does not work yet
#include (CodeCoverage)
......@@ -61,6 +61,10 @@ add_compile_options("$<$<CXX_COMPILER_ID:Clang>:-Wno-nonportable-include-path>")
# dependencies
find_package (Boost 1.60 REQUIRED)
if (Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
endif (Boost_FOUND)
find_package (Eigen3 REQUIRED)
#find_package (HDF5) # not yet needed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment