diff options
-rw-r--r-- | cmake/run_translator.cmake | 2 | ||||
-rw-r--r-- | doc/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmake/run_translator.cmake b/cmake/run_translator.cmake index 67469e1..618bb82 100644 --- a/cmake/run_translator.cmake +++ b/cmake/run_translator.cmake @@ -1,4 +1,4 @@ -include(${CMAKE_SOURCE_DIR}/../cmake/version.cmake) +include(${SOURCE}/cmake/version.cmake) find_program(PYTHON NAMES python) execute_process( COMMAND ${PYTHON} ${CMAKE_SOURCE_DIR}/translator.py diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index cefcccf..b834c66 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -32,7 +32,7 @@ add_custom_target(docs # language.doc add_custom_command( - COMMAND ${CMAKE_COMMAND} -P ${CMAKE_SOURCE_DIR}/cmake/run_translator.cmake + COMMAND ${CMAKE_COMMAND} "-DSOURCE=${CMAKE_SOURCE_DIR}" -P ${CMAKE_SOURCE_DIR}/cmake/run_translator.cmake DEPENDS ${DOXYDOCS}/translator.py DEPENDS maintainers.txt language.tpl translator.py OUTPUT language.doc |