Skip to content

Commit

Permalink
Set Python and Boost as system includes
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwweber committed Nov 29, 2024
1 parent 0bab70a commit 8a4f8c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interfaces/python_sdist/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ endif()
configure_file("../include/cantera/base/config.h.in" "${CMAKE_CURRENT_SOURCE_DIR}/../include/cantera/base/config.h")

add_library(cantera_lib STATIC ${CT_LIB_SOURCES})
target_include_directories(cantera_lib PRIVATE "../include" "${Python_INCLUDE_DIRS}" "${Boost_INCLUDE_DIRS}")
target_include_directories(cantera_lib PRIVATE "../include")
target_include_directories(cantera_lib SYSTEM PRIVATE "${Python_INCLUDE_DIRS}" "${Boost_INCLUDE_DIRS}")
set_target_properties(cantera_lib PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_link_libraries(cantera_lib PUBLIC
yaml-cpp::yaml-cpp
Expand Down

0 comments on commit 8a4f8c8

Please sign in to comment.