diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt index 0408e6e8..6e6d4e52 100644 --- a/build/CMakeLists.txt +++ b/build/CMakeLists.txt @@ -102,7 +102,7 @@ else() endif() # sync examples in documentation with example folder -add_custom_target(sync_examples ALL COMMAND python ../doc/sync_code.py) +add_custom_target(sync_examples ALL COMMAND python ${PROJECT_SOURCE_DIR}/../doc/sync_code.py) # checks if(BUILD_CHECKS)