3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-18 12:03:50 +01:00

[cmake] Properly set PYTHONPATH for cpp2rst custom_command

This commit is contained in:
Nils Wentzell 2020-05-15 12:09:22 -04:00
parent 5982c49615
commit dbed8f20d5

View File

@ -13,7 +13,8 @@ macro(generate_docs header_file)
TARGET ${PROJECT_NAME}_docs_cpp2rst
COMMAND rm -rf ${CMAKE_CURRENT_SOURCE_DIR}/cpp2rst_generated
COMMAND
c++2rst
PYTHONPATH=${CPP2PY_BINARY_DIR}:$ENV{PYTHONPATH}
${CPP2PY_BINARY_DIR}/bin/c++2rst
${header_file}
-N app4triqs
--output_directory ${CMAKE_CURRENT_SOURCE_DIR}/cpp2rst_generated