Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
spm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
spm
Commits
23a060bd
Commit
23a060bd
authored
4 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Add a protectio on the docs target to avoid conflict with other packages
parent
323f756c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/CMakeLists.txt
+9
-2
9 additions, 2 deletions
docs/CMakeLists.txt
with
9 additions
and
2 deletions
docs/CMakeLists.txt
+
9
−
2
View file @
23a060bd
...
...
@@ -49,7 +49,7 @@ if (BUILD_DOCUMENTATION)
VERBATIM
)
#-- Add a custom target to run Doxygen when the project is built
add_custom_target
(
docs
add_custom_target
(
spm_
docs
DEPENDS
${
CMAKE_CURRENT_BINARY_DIR
}
/doxygen/doxygen.stamp
)
endif
()
...
...
@@ -59,8 +59,15 @@ if (BUILD_DOCUMENTATION)
endif
(
DOXYGEN_FOUND
)
else
(
BUILD_DOCUMENTATION
)
add_custom_target
(
docs
add_custom_target
(
spm_
docs
COMMAND true
COMMAND true
COMMENT
"No documentation will be generated. Configure with BUILD_DOCUMENTATION set to ON"
VERBATIM
)
endif
(
BUILD_DOCUMENTATION
)
if
(
TARGET docs
)
add_dependencies
(
docs spm_docs
)
else
()
add_custom_target
(
docs
DEPENDS spm_docs
)
endif
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment