Skip to content

Commit

Permalink
core: configure python build version per build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
program-- committed Nov 27, 2023
1 parent b131a72 commit 5c0bd8e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ if (NGEN_WITH_PYTHON)
${PROJECT_SOURCE_DIR}/include/utilities
${PROJECT_SOURCE_DIR}/extern/pybind11/include
)
configure_file(${PROJECT_SOURCE_DIR}/src/core/NGen_Python_Build_Versions.in NGen_Python_Build_Versions.cpp)
target_sources(core PRIVATE NGen_Python_Build_Versions.cpp)
configure_file(
${PROJECT_SOURCE_DIR}/src/core/NGen_Python_Build_Versions.in
${CMAKE_CURRENT_BINARY_DIR}/src/core/NGen_Python_Build_Versions.cpp
)
target_sources(core PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/src/core/NGen_Python_Build_Versions.cpp)
target_link_libraries(core PUBLIC
Boost::boost # Headers-only Boost
pybind11::embed
Expand Down

0 comments on commit 5c0bd8e

Please sign in to comment.