mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-31 19:30:44 +00:00
don't require CMake 3.13 yet
This commit is contained in:
parent
a7b75dcecc
commit
7ea81a2ee6
@ -29,7 +29,9 @@ add_library(Library SHARED library.c library.h)
|
||||
# target_link_options(Library PUBLIC -Wl,-bexpfull)
|
||||
|
||||
# Or tell it to use an export list from a separate file:
|
||||
target_link_options(Library PUBLIC -Wl,-bE:${CMAKE_CURRENT_SOURCE_DIR}/library.exp)
|
||||
# (CMake 3.13 or later)
|
||||
# target_link_options(Library PUBLIC -Wl,-bE:${CMAKE_CURRENT_SOURCE_DIR}/library.exp)
|
||||
set_target_properties(Library PROPERTIES LINK_FLAGS -Wl,-bE:${CMAKE_CURRENT_SOURCE_DIR}/library.exp)
|
||||
|
||||
# Note: Step 1 & 2 are equivalent to the command:
|
||||
# powerpc-apple-macos-gcc -shared -Wl,-bE:library.exp library.c -o libLibrary.so
|
||||
|
Loading…
Reference in New Issue
Block a user