Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
typed-graphics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Philip Trettner
typed-graphics
Commits
a32ba637
Commit
a32ba637
authored
6 years ago
by
Philip Trettner
Browse files
Options
Downloads
Patches
Plain Diff
added gold linker
parent
c8e7448a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+9
-0
9 additions, 0 deletions
CMakeLists.txt
with
9 additions
and
0 deletions
CMakeLists.txt
+
9
−
0
View file @
a32ba637
...
...
@@ -10,6 +10,9 @@ if (NOT TARGET glfw)
message
(
FATAL_ERROR
"'glfw' target must be available (missing add_subdirectory or wrong order? NOTE: this is currently a requirement)"
)
endif
()
# Options
set
(
TG_USE_GOLD_LINKER ON CACHE BOOL
"If true, ld.gold is used for linking"
)
# ===============================================
# Create target
...
...
@@ -32,6 +35,12 @@ target_link_libraries(typed-graphics PUBLIC
glfw
)
# gold linker
if
(
TG_USE_GOLD_LINKER
)
# WRONG: target_compile_options(glow PUBLIC -fuse-ld=gold )
target_link_libraries
(
typed-graphics PUBLIC -fuse-ld=gold
)
endif
()
# Optional dependencies
if
(
TARGET aion
)
target_link_libraries
(
typed-graphics PUBLIC aion
)
...
...
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