File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ endif()
40
40
## Eigen3 is used by most of the libraries that follow
41
41
find_package (Eigen3 REQUIRED )
42
42
add_definitions (-DEIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT )
43
+ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
44
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -idirafter${EIGEN3_INCLUDE_DIR} " )
45
+ endif ()
43
46
44
47
################################################################################
45
48
# own external libraries
Original file line number Diff line number Diff line change @@ -29,5 +29,9 @@ add_library(Utilities
29
29
)
30
30
31
31
add_dependencies (Utilities partio zlib )
32
- target_include_directories (Utilities PUBLIC ${TOPLEVEL_INCLUDE_DIR} ${EIGEN3_INCLUDE_DIR} )
32
+ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
33
+ target_compile_options (Utilities PUBLIC -idirafter${TOPLEVEL_INCLUDE_DIR} -idirafter${EIGEN3_INCLUDE_DIR} )
34
+ else ()
35
+ target_include_directories (Utilities PUBLIC ${TOPLEVEL_INCLUDE_DIR} ${EIGEN3_INCLUDE_DIR} )
36
+ endif ()
33
37
target_link_libraries (Utilities INTERFACE partio zlib MD5 )
You can’t perform that action at this time.
0 commit comments