Skip to content
Snippets Groups Projects
Commit a32ba637 authored by Philip Trettner's avatar Philip Trettner
Browse files

added gold linker

parent c8e7448a
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment