Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
1b797362
Commit
1b797362
authored
Jun 16, 2021
by
Hubert Chathi
Browse files
only export olm functions to avoid colliding with other libraries
parent
d47c2a92
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
1b797362
...
...
@@ -48,6 +48,10 @@ add_library(olm
lib/curve25519-donna/curve25519-donna.c
)
add_library
(
Olm::Olm ALIAS olm
)
# restrict the exported symbols
set
(
CMAKE_SHARED_LINKER_FLAGS
${
CMAKE_SHARED_LINKER_FLAGS
}
-Wl,--version-script=
${
CMAKE_CURRENT_SOURCE_DIR
}
/libolm.version
)
set_target_properties
(
olm PROPERTIES LINK_DEPENDS
${
CMAKE_CURRENT_SOURCE_DIR
}
/libolm.version
)
target_include_directories
(
olm
PUBLIC
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/include>
...
...
libolm.version
0 → 100644
View file @
1b797362
{
global: olm*; _olm*; megolm*; _ZN3olm*;
local: *;
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment