From 8c1d77c7efa075efe7335026f9251501d00e6a1c Mon Sep 17 00:00:00 2001 From: Tim Siebert Date: Mon, 4 Nov 2024 08:14:36 +0100 Subject: [PATCH 1/2] add optimization flags for release --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d418fb5..89d2f4a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,8 @@ project(adol-c DESCRIPTION "A Package for Automatic Differentiation of Algorithms Written in C/C++" HOMEPAGE_URL "https://github.com/coin-or/ADOL-C") +set(CMAKE_C_FLAGS_RELEASE "-O3") +set(CMAKE_CXX_FLAGS_RELEASE "-O3") add_library(adolc SHARED) add_library(adolc::adolc ALIAS adolc) From 330cc85dd3b4613b95c3d70161a216212b1849f8 Mon Sep 17 00:00:00 2001 From: Tim Siebert Date: Mon, 4 Nov 2024 08:14:56 +0100 Subject: [PATCH 2/2] update cmake call --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2346b291..bd7c2961 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ The complete documentation can be found in the subdirectory "doc". 2. Call CMake: - `cmake -DCMAKE_INSTALL_PREFIX=/path/you/want/to/install/in path/to/adolc/sources` + `cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/path/you/want/to/install/in path/to/adolc/sources` 3. Build and install: @@ -33,6 +33,7 @@ The complete documentation can be found in the subdirectory "doc". `make install` + ## Local installation using the AutoTools 1. Type `autoreconf -fi`