mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
fix: boost's include dir was listed first (#2384)
This commit is contained in:
parent
173204639e
commit
f7abac6689
@ -236,13 +236,13 @@ foreach(target ${test_targets})
|
||||
if(PYBIND11_EIGEN_VIA_TARGET)
|
||||
target_link_libraries(${target} PRIVATE Eigen3::Eigen)
|
||||
else()
|
||||
target_include_directories(${target} PRIVATE ${EIGEN3_INCLUDE_DIR})
|
||||
target_include_directories(${target} SYSTEM PRIVATE ${EIGEN3_INCLUDE_DIR})
|
||||
endif()
|
||||
target_compile_definitions(${target} PRIVATE -DPYBIND11_TEST_EIGEN)
|
||||
endif()
|
||||
|
||||
if(Boost_FOUND)
|
||||
target_include_directories(${target} PRIVATE ${Boost_INCLUDE_DIRS})
|
||||
target_include_directories(${target} SYSTEM PRIVATE ${Boost_INCLUDE_DIRS})
|
||||
target_compile_definitions(${target} PRIVATE -DPYBIND11_TEST_BOOST)
|
||||
endif()
|
||||
|
||||
|
@ -14,7 +14,7 @@ else()
|
||||
endif()
|
||||
|
||||
add_executable(test_embed catch.cpp test_interpreter.cpp)
|
||||
target_include_directories(test_embed PRIVATE "${CATCH_INCLUDE_DIR}")
|
||||
target_include_directories(test_embed SYSTEM PRIVATE "${CATCH_INCLUDE_DIR}")
|
||||
pybind11_enable_warnings(test_embed)
|
||||
|
||||
target_link_libraries(test_embed PRIVATE pybind11::embed)
|
||||
|
Loading…
Reference in New Issue
Block a user