Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
decaf
Commits
f5b954e7
Commit
f5b954e7
authored
3 months ago
by
Ghislain MARY
Committed by
johan pascal
3 weeks ago
Browse files
Options
Download
Patches
Plain Diff
Use position independent code when building statically.
parent
e72041de
update/202405
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/CMakeLists.txt
+1
-0
src/CMakeLists.txt
with
1 addition
and
0 deletions
src/CMakeLists.txt
+
1
−
0
View file @
f5b954e7
...
...
@@ -84,6 +84,7 @@ if(ENABLE_STATIC)
add_library
(
decaf-static STATIC
${
DECAF_HEADER_FILES
}
${
DECAF_SOURCE_FILES_C
}
${
DECAF_SOURCE_FILES_CXX
}
$<TARGET_OBJECTS:decaf-p25519> $<TARGET_OBJECTS:decaf-p448> $<TARGET_OBJECTS:decaf-curve25519> $<TARGET_OBJECTS:decaf-curve448>
)
add_dependencies
(
decaf-static decaf-generated-code
)
set_target_properties
(
decaf-static PROPERTIES OUTPUT_NAME decaf
)
set_target_properties
(
decaf-static PROPERTIES POSITION_INDEPENDENT_CODE True
)
target_include_directories
(
decaf-static INTERFACE $<BUILD_INTERFACE:
${
GSOURCE_PATH
}
/include> $<INSTALL_INTERFACE:include/decaf>
)
target_link_libraries
(
decaf-static INTERFACE
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets