| 1 |
Author: Andreas Tille <[email protected]> |
| 2 |
Last-Update: Fri, 05 Jun 2020 17:53:54 +0200 |
| 3 |
Description: Use Debian packaged libraries |
| 4 |
|
| 5 |
--- a/CMakeLists.txt |
| 6 |
+++ b/CMakeLists.txt |
| 7 |
@@ -66,6 +66,7 @@ include(${CMAKE_ROOT}/Modules/ExternalPr |
| 8 |
# We need to NOT blank out UPDATE_COMMAND or we can never change the Git revision we point to. |
| 9 |
# The cost of this is that we have to re-configure on every build if we do update. |
| 10 |
|
| 11 |
+if(!DEBIAN_BUILD) |
| 12 |
# In-place Parallel Super Scalar Samplesort (IPS⁴o), header only |
| 13 |
ExternalProject_Add(ips4o |
| 14 |
GIT_REPOSITORY "https://github.com/vgteam/ips4o.git" |
| 15 |
@@ -96,6 +97,7 @@ ExternalProject_Add(mmap_allocator |
| 16 |
CONFIGURE_COMMAND "") |
| 17 |
ExternalProject_Get_property(mmap_allocator SOURCE_DIR) |
| 18 |
set(mmap_allocator_INCLUDE "${SOURCE_DIR}") |
| 19 |
+endif() |
| 20 |
|
| 21 |
set(CMAKE_BUILD_TYPE Debug) |
| 22 |
|
| 23 |
@@ -103,15 +105,12 @@ set(CMAKE_BUILD_TYPE Debug) |
| 24 |
add_executable(iitii |
| 25 |
${CMAKE_SOURCE_DIR}/src/main.cpp |
| 26 |
) |
| 27 |
|
| 28 |
target_include_directories(iitii PUBLIC |
| 29 |
"${CMAKE_SOURCE_DIR}/src" |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
+ ) |
| 34 |
|
| 35 |
target_link_libraries(iitii |
| 36 |
|
| 37 |
+ "-lmmap_allocator" |
| 38 |
"-latomic") |
| 39 |
|
| 40 |
if (APPLE) |