blob: b5bdc734ab551c2ebc9608bb55763a7a30c02241 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
https://github.com/cburstedde/libsc/pull/54
https://github.com/cburstedde/libsc/pull/55
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2ce08e2..a588beb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,6 +8,8 @@ HOMEPAGE_URL https://www.p4est.org/
DESCRIPTION "The SC library supports parallel scientific applications."
VERSION ${PROJECT_VERSION})
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+
include(CTest)
include(cmake/options.cmake)
@@ -28,8 +30,7 @@ if(MPI_FOUND)
endif()
# --- libb64
-add_library(libb64 OBJECT libb64/cencode.c libb64/cdecode.c
- libb64/b64dec.c libb64/b64enc.c)
+add_library(libb64 OBJECT libb64/cencode.c libb64/cdecode.c)
target_include_directories(libb64 PRIVATE libb64)
# --- sc
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a588beb..aff0eca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -64,8 +64,8 @@ install(DIRECTORY ${PROJECT_SOURCE_DIR}/src/ ${PROJECT_SOURCE_DIR}/src/sc_builti
install(TARGETS sc
EXPORT ${PROJECT_NAME}Targets
- ARCHIVE DESTINATION lib
- LIBRARY DESTINATION lib)
+ ARCHIVE DESTINATION ${library_reldir}
+ LIBRARY DESTINATION ${library_reldir})
add_subdirectory(src)
|