1
0
Fork 0

Fix order of libdl linking

This commit is contained in:
Ilya Fedin 2022-09-23 23:24:58 +04:00 committed by John Preston
parent 848c16578e
commit f49e254d8c

View file

@ -34,11 +34,6 @@ INTERFACE
-Wl,--as-needed -Wl,--as-needed
) )
target_link_libraries(common_options
INTERFACE
${CMAKE_DL_LIBS}
)
if (DESKTOP_APP_SPECIAL_TARGET) if (DESKTOP_APP_SPECIAL_TARGET)
target_compile_options(common_options target_compile_options(common_options
INTERFACE INTERFACE
@ -113,3 +108,8 @@ if (DESKTOP_APP_USE_ALLOCATION_TRACER)
$<TARGET_FILE:desktop-app::linux_allocation_tracer> $<TARGET_FILE:desktop-app::linux_allocation_tracer>
) )
endif() endif()
target_link_libraries(common_options
INTERFACE
${CMAKE_DL_LIBS}
)