Browse Source

Perhaps bitness detection is an introspection

http://www.cmake.org/cmake/help/v3.0/command/find_library.html
pull/197/head
Mikhail Titov 9 years ago
parent
commit
2d3493a225
  1. 6
      build/cmake_modules/FindCryptoPP.cmake

6
build/cmake_modules/FindCryptoPP.cmake

@ -33,14 +33,16 @@ else(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES) @@ -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}

Loading…
Cancel
Save