~andreas-pokorny/mir/nested-hardware-cursor

« back to all changes in this revision

Viewing changes to src/common/CMakeLists.txt

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2016-08-05 06:01:07 UTC
  • mfrom: (3629.2.1 mir4)
  • Revision ID: tarmac-20160805060107-tiqhdsqwgus3jkw8
We don't need mir_add_library_with_symbols() (a self confessed "abysmal hack"). We should use LINK_DEPENDS which is "intended to specify dependencies on “linker scripts” for custom Makefile link rules.".

Approved by Daniel van Vugt, Kevin DuBois, mir-ci-bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
set(MIRCOMMON_ABI 6)
40
40
set(symbol_map ${CMAKE_CURRENT_SOURCE_DIR}/symbols.map)
41
41
 
42
 
mir_add_library_with_symbols(mircommon SHARED
43
 
  ${symbol_map}
 
42
add_library(mircommon SHARED
44
43
  ${MIR_COMMON_SOURCES}
45
44
)
46
45
 
53
52
  PROPERTIES
54
53
  SOVERSION ${MIRCOMMON_ABI}
55
54
  LINK_FLAGS "-Wl,--exclude-libs=ALL -Wl,--version-script,${symbol_map}"
 
55
  LINK_DEPENDS ${symbol_map}
56
56
)
57
57
 
58
58
install(TARGETS mircommon LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})