From 2d3493a2257b82991efabfcd7c6a798f232575a9 Mon Sep 17 00:00:00 2001 From: Mikhail Titov Date: Sat, 6 Jun 2015 12:34:06 -0500 Subject: [PATCH] Perhaps bitness detection is an introspection http://www.cmake.org/cmake/help/v3.0/command/find_library.html --- build/cmake_modules/FindCryptoPP.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/cmake_modules/FindCryptoPP.cmake b/build/cmake_modules/FindCryptoPP.cmake index 3435487d..09b72184 100644 --- a/build/cmake_modules/FindCryptoPP.cmake +++ b/build/cmake_modules/FindCryptoPP.cmake @@ -33,14 +33,16 @@ else(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES) set(PLATFORM Win32) endif() find_library(CRYPTO++_LIBRARIES_RELEASE NAMES cryptlib cryptopp + HINTS + ${PROJECT_SOURCE_DIR}/../../cryptopp/${PLATFORM}/Output/Release PATHS $ENV{CRYPTOPP}/Win32/Output/Release - ${PROJECT_SOURCE_DIR}/../../cryptopp/${PLATFORM}/Output/Release ) find_library(CRYPTO++_LIBRARIES_DEBUG NAMES cryptlib cryptopp + HINTS + ${PROJECT_SOURCE_DIR}/../../cryptopp/${PLATFORM}/Output/Debug PATHS $ENV{CRYPTOPP}/Win32/Output/Debug - ${PROJECT_SOURCE_DIR}/../../cryptopp/${PLATFORM}/Output/Debug ) set(CRYPTO++_LIBRARIES debug ${CRYPTO++_LIBRARIES_DEBUG}