diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-20 12:43:29 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-20 12:43:29 +0200 |
| commit | ed83ebb3147ed2e261a709799e12d0eb43200bf3 (patch) | |
| tree | 6a8c4f75de8e06e2e8254aec0ec0cba7a8eca4b8 /CMakeLists.txt | |
| parent | 6ecb3fc69ddafc4aeb18397555ac7e9cb2f7a4d9 (diff) | |
| download | cmix-ed83ebb3147ed2e261a709799e12d0eb43200bf3.tar.gz cmix-ed83ebb3147ed2e261a709799e12d0eb43200bf3.tar.bz2 cmix-ed83ebb3147ed2e261a709799e12d0eb43200bf3.zip | |
Shared secret key is now distributed to the other nodes.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f30c66e..f241abd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,14 @@ if(DOXYGEN_FOUND) ) endif(DOXYGEN_FOUND) +option(use_lto "Enable link time optimalisation" OFF) +if(use_lto) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -flto") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flto") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -flto -fwhole-program") + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -flto") +endif(use_lto) + add_subdirectory(libcmix-bignum) add_subdirectory(libcmix-crypto) add_subdirectory(libcmix) |
