Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Sylvain Joubert
KWSys
Commits
145f6dc3
Commit
145f6dc3
authored
20 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
ERR: Do not add the library if no sources are used.
parent
3babc1d8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+8
-6
8 additions, 6 deletions
CMakeLists.txt
with
8 additions
and
6 deletions
CMakeLists.txt
+
8
−
6
View file @
145f6dc3
...
...
@@ -329,12 +329,14 @@ ENDFOREACH(h)
#-----------------------------------------------------------------------------
# Add the library with the configured name and list of sources.
ADD_LIBRARY
(
${
KWSYS_NAMESPACE
}
${
KWSYS_LIBRARY_TYPE
}
${
KWSYS_SRCS
}
)
# Create an install target for the library.
IF
(
KWSYS_LIBRARY_INSTALL_DIR
)
INSTALL_TARGETS
(
${
KWSYS_LIBRARY_INSTALL_DIR
}
${
KWSYS_NAMESPACE
}
)
ENDIF
(
KWSYS_LIBRARY_INSTALL_DIR
)
IF
(
KWSYS_SRCS
)
ADD_LIBRARY
(
${
KWSYS_NAMESPACE
}
${
KWSYS_LIBRARY_TYPE
}
${
KWSYS_SRCS
}
)
# Create an install target for the library.
IF
(
KWSYS_LIBRARY_INSTALL_DIR
)
INSTALL_TARGETS
(
${
KWSYS_LIBRARY_INSTALL_DIR
}
${
KWSYS_NAMESPACE
}
)
ENDIF
(
KWSYS_LIBRARY_INSTALL_DIR
)
ENDIF
(
KWSYS_SRCS
)
# For building kwsys itself, we use a macro defined on the command
# line to configure the namespace in the C and C++ source files.
...
...
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