Page MenuHomePhorge

D327.1783656116.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D327.1783656116.diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,6 +27,7 @@
option(libkazv_OUTPUT_LEVEL "Output level: Debug>=90, Info>=70, Quiet>=20, no output=1" 0)
option(libkazv_ENABLE_COVERAGE "Enable code coverage information" OFF)
option(libkazv_ERROR_ON_WARNING "Turn compiler warnings to errors. Only use for development purposes." OFF)
+option(libkazv_USE_cryptopp_CONFIG "Use cryptopp config module instead of Findcryptopp.cmake" OFF)
if(libkazv_ENABLE_COVERAGE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage -fPIC -O0")
@@ -82,17 +83,12 @@
find_package(Lager REQUIRED)
-if(MINGW)
- # On MinGW, disregard the Findcryptopp.cmake
+if(libkazv_USE_cryptopp_CONFIG)
+ # In some environments, use cryptopp config instead of Findcryptopp.cmake
find_package(cryptopp REQUIRED CONFIG)
-else()
- find_package(cryptopp REQUIRED)
-endif()
-# On MinGW we use the CMake build, and the target name is different
-# for the shared and the static libraries.
-if(MINGW)
set(CRYPTOPP_TARGET_NAME cryptopp-shared)
else()
+ find_package(cryptopp REQUIRED)
set(CRYPTOPP_TARGET_NAME cryptopp)
endif()

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 9, 9:01 PM (21 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1677626
Default Alt Text
D327.1783656116.diff (1 KB)

Event Timeline