Cleanup cryptopp headers path search

This commit is contained in:
Mikhail Titov 2015-06-10 01:12:43 -05:00
parent 44768e92ad
commit ba2b792916
2 changed files with 6 additions and 9 deletions

View file

@ -195,7 +195,7 @@ if (NOT ${MINIUPNPC_FOUND})
endif() endif()
# load includes # load includes
include_directories( ${Boost_INCLUDE_DIRS} ${CRYPTO++_INCLUDE_DIR} "${CMAKE_SOURCE_DIR}/..") include_directories( ${Boost_INCLUDE_DIRS} ${CRYPTO++_INCLUDE_DIR} )
# show summary # show summary
message(STATUS "---------------------------------------") message(STATUS "---------------------------------------")

View file

@ -4,17 +4,14 @@ if(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES)
set(CRYPTO++_FOUND TRUE) set(CRYPTO++_FOUND TRUE)
else(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES) else(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES)
find_path(CRYPTO++_INCLUDE_DIR cryptlib.h find_path(CRYPTO++_INCLUDE_DIR cryptopp/cryptlib.h
/usr/include/crypto++ /usr/include
/usr/include/cryptopp /usr/local/include
/usr/local/include/crypto++
/usr/local/include/cryptopp
/opt/local/include/crypto++
/opt/local/include/cryptopp
$ENV{SystemDrive}/Crypto++/include $ENV{SystemDrive}/Crypto++/include
$ENV{CRYPTOPP} $ENV{CRYPTOPP}
$ENV{CRYPTOPP}/..
$ENV{CRYPTOPP}/include $ENV{CRYPTOPP}/include
${PROJECT_SOURCE_DIR}/../../cryptopp ${PROJECT_SOURCE_DIR}/../..
) )
find_library(CRYPTO++_LIBRARIES NAMES cryptopp find_library(CRYPTO++_LIBRARIES NAMES cryptopp