mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 21:25:13 +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)
|
if(PYBIND11_EIGEN_VIA_TARGET)
|
||||||
target_link_libraries(${target} PRIVATE Eigen3::Eigen)
|
target_link_libraries(${target} PRIVATE Eigen3::Eigen)
|
||||||
else()
|
else()
|
||||||
target_include_directories(${target} PRIVATE ${EIGEN3_INCLUDE_DIR})
|
target_include_directories(${target} SYSTEM PRIVATE ${EIGEN3_INCLUDE_DIR})
|
||||||
endif()
|
endif()
|
||||||
target_compile_definitions(${target} PRIVATE -DPYBIND11_TEST_EIGEN)
|
target_compile_definitions(${target} PRIVATE -DPYBIND11_TEST_EIGEN)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(Boost_FOUND)
|
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)
|
target_compile_definitions(${target} PRIVATE -DPYBIND11_TEST_BOOST)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable(test_embed catch.cpp test_interpreter.cpp)
|
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)
|
pybind11_enable_warnings(test_embed)
|
||||||
|
|
||||||
target_link_libraries(test_embed PRIVATE pybind11::embed)
|
target_link_libraries(test_embed PRIVATE pybind11::embed)
|
||||||
|
Loading…
Reference in New Issue
Block a user