Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85814706
D327.1792773746.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D327.1792773746.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 23, 9:42 AM (22 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1792208
Default Alt Text
D327.1792773746.diff (1 KB)
Attached To
Mode
D327: Make whether using cryptopp cmake configurable
Attached
Detach File
Event Timeline