1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-11 17:37:53 +00:00

Perhaps bitness detection is an introspection

http://www.cmake.org/cmake/help/v3.0/command/find_library.html
This commit is contained in:
Mikhail Titov 2015-06-06 12:34:06 -05:00
parent a3b08c0016
commit 2d3493a225

View File

@ -33,14 +33,16 @@ else(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES)
set(PLATFORM Win32) set(PLATFORM Win32)
endif() endif()
find_library(CRYPTO++_LIBRARIES_RELEASE NAMES cryptlib cryptopp find_library(CRYPTO++_LIBRARIES_RELEASE NAMES cryptlib cryptopp
HINTS
${PROJECT_SOURCE_DIR}/../../cryptopp/${PLATFORM}/Output/Release
PATHS PATHS
$ENV{CRYPTOPP}/Win32/Output/Release $ENV{CRYPTOPP}/Win32/Output/Release
${PROJECT_SOURCE_DIR}/../../cryptopp/${PLATFORM}/Output/Release
) )
find_library(CRYPTO++_LIBRARIES_DEBUG NAMES cryptlib cryptopp find_library(CRYPTO++_LIBRARIES_DEBUG NAMES cryptlib cryptopp
HINTS
${PROJECT_SOURCE_DIR}/../../cryptopp/${PLATFORM}/Output/Debug
PATHS PATHS
$ENV{CRYPTOPP}/Win32/Output/Debug $ENV{CRYPTOPP}/Win32/Output/Debug
${PROJECT_SOURCE_DIR}/../../cryptopp/${PLATFORM}/Output/Debug
) )
set(CRYPTO++_LIBRARIES set(CRYPTO++_LIBRARIES
debug ${CRYPTO++_LIBRARIES_DEBUG} debug ${CRYPTO++_LIBRARIES_DEBUG}