Skip to content
Snippets Groups Projects
Commit cfab4a0d authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix CMake scripts

This fixes ninja builds
parent 3025d3a2
No related branches found
No related tags found
1 merge request!193Fix CMake scripts
......@@ -20,13 +20,10 @@ add_custom_target(doc DEPENDS userdoc)
if (EMACS AND GNUPLOT_FOUND AND GMSH)
add_custom_command(
OUTPUT "${PUGS_BINARY_DIR}/doc"
add_custom_target(pugsdoc-dir
COMMAND ${CMAKE_COMMAND} -E make_directory "${PUGS_BINARY_DIR}/doc"
)
add_custom_target(pugsdoc-dir DEPENDS "${PUGS_BINARY_DIR}/doc")
set(ORG_GENERATOR_FILES
"${PUGS_SOURCE_DIR}/doc/lisp/build-doc-config.el"
"${PUGS_SOURCE_DIR}/doc/lisp/share/pugs.el"
......@@ -102,12 +99,12 @@ if (EMACS AND GNUPLOT_FOUND AND GMSH)
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
@ONLY)
set_source_files_properties(
${PUGS_BINARY_DIR}/build-pdf.sh2
PROPERTIES
GENERATED TRUE
HEADER_FILE_ONLY TRUE
)
# set_source_files_properties(
# ${PUGS_BINARY_DIR}/build-pdf.sh2
# PROPERTIES
# GENERATED TRUE
# HEADER_FILE_ONLY TRUE
# )
add_custom_target(userdoc-pdf DEPENDS pugsdoc-dir "${PUGS_BINARY_DIR}/doc/userdoc.pdf" "${PUGS_BINARY_DIR}/doc/build-userdoc-pdf.sh")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment