Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 69150528 authored by hhakim's avatar hhakim
Browse files

Adjust the python name (python3 is python) for Windows in the workaround...

Adjust the python name (python3 is python) for Windows in the workaround needed in case no python has been set (when BUILD_WRAPPER_PYTHON=OFF).
parent f12fea0d
No related branches found
No related tags found
No related merge requests found
...@@ -58,12 +58,15 @@ if(BUILD_DOCUMENTATION) ...@@ -58,12 +58,15 @@ if(BUILD_DOCUMENTATION)
add_dependencies(doc PREPARE_MATFAUST_FOR_DOXYDOC) add_dependencies(doc PREPARE_MATFAUST_FOR_DOXYDOC)
endif() endif()
endif() endif()
#list(GET <list> <element index> [<index> ...] <out-var>)
list(GET PYTHON_EXES -1 PY3_EXE) list(GET PYTHON_EXES -1 PY3_EXE)
set(GLOB_PATTS "'${PROJECT_BINARY_DIR}/doc/html/namespacepyfaust_*.html';'${PROJECT_BINARY_DIR}/doc/html/namespacematfaust_*.html'") set(GLOB_PATTS "'${PROJECT_BINARY_DIR}/doc/html/namespacepyfaust_*.html';'${PROJECT_BINARY_DIR}/doc/html/namespacematfaust_*.html'")
if(NOT PY3_EXE) if(NOT PY3_EXE)
# workaround in case BUILD_WRAPPER_PYTHON is OFF which implies PY3_EXE is not set # workaround in case BUILD_WRAPPER_PYTHON is OFF which implies PY3_EXE is not set
set(PY3_EXE python3) if(WIN32)
set(PY3_EXE python)
else()
set(PY3_EXE python3)
endif()
endif() endif()
add_custom_target(doc_exclu_class_filtering ALL ${PY3_EXE} add_custom_target(doc_exclu_class_filtering ALL ${PY3_EXE}
${PROJECT_BINARY_DIR}/doc/filterout_excluded_classes.py ${GLOB_PATTS} DEPENDS doc WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/doc COMMENT "Filter out the non-documented classes") ${PROJECT_BINARY_DIR}/doc/filterout_excluded_classes.py ${GLOB_PATTS} DEPENDS doc WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/doc COMMENT "Filter out the non-documented classes")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment