Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
IHTACMakeCommon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IHTA
CMake
IHTACMakeCommon
Commits
68075680
Commit
68075680
authored
2 years ago
by
Pascal Palenda
Browse files
Options
Downloads
Patches
Plain Diff
Formatting
parent
d8dc4960
Branches
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
src/IhtaAddLibrary.cmake
+4
-7
4 additions, 7 deletions
src/IhtaAddLibrary.cmake
with
4 additions
and
7 deletions
src/IhtaAddLibrary.cmake
+
4
−
7
View file @
68075680
...
...
@@ -7,7 +7,7 @@ include_guard ()
This macro also allows to create a unit test executable with the same command.
In most cases, after this command only link libraries have to be set and
In most cases, after this command only link libraries have to be set and
optionally install directives.
Note: when using generated export headers from cmake, these have to be added
...
...
@@ -52,14 +52,14 @@ include_guard ()
Optional namespace for the alias target of the library.
At least NAMESPACE or IDE_FOLDER must be given. If only one is given, the other
At least NAMESPACE or IDE_FOLDER must be given. If only one is given, the other
one will be set to the value of the given one.
.. variable:: IDE_FOLDER
Optional IDE folder for the library target(s).
At least NAMESPACE or IDE_FOLDER must be given. If only one is given, the other
At least NAMESPACE or IDE_FOLDER must be given. If only one is given, the other
one will be set to the value of the given one.
.. variable:: INCLUDE_DIR
...
...
@@ -132,10 +132,7 @@ macro (ihta_add_library)
if
(
DEFINED IHTA_ADD_LIB_LIBRARY_TYPE
)
set
(
IHTA_ADD_LIB_TYPES
"STATIC"
"SHARED"
)
if
(
NOT
(
${
IHTA_ADD_LIB_LIBRARY_TYPE
}
IN_LIST IHTA_ADD_LIB_TYPES
))
message
(
FATAL_ERROR
"ihta_add_library only supports the following LIBRARY_TYPE's: STATIC, SHARED"
)
message
(
FATAL_ERROR
"ihta_add_library only supports the following LIBRARY_TYPE's: STATIC, SHARED"
)
endif
()
else
()
set
(
IHTA_ADD_LIB_TYPES STATIC
)
...
...
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