aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-06-07 05:37:54 +0200
committerSven Gothel <[email protected]>2021-06-07 05:37:54 +0200
commit7e0bfc56c1bd4cc70b16d3aaef786c5e6517c75c (patch)
tree8bbc95877426b7df652e649110cb09655f5fa689 /CMakeLists.txt
parent0671a49dbbd6aa6e2283bc5da052b9e48fa7c547 (diff)
Use 'AMALGAMATION_ARCH_INC' derived from "${PROJECT_SOURCE_DIR}/include/amalgamation-${OS_ARCH}"
Completes arch independent cmake build setup, to use botan for amd64, arm64 etc
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 52513f1..64c29a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,6 +12,9 @@ FIND_PACKAGE (Threads REQUIRED)
include(jaulib/JaulibSetup.cmake)
JaulibSetup()
+# Determine amalgamation platform include director, depnding on OS_ARCH
+set(AMALGAMATION_ARCH_INC "${PROJECT_SOURCE_DIR}/include/amalgamation-${OS_ARCH}")
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -frtti")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -frtti")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -frtti")