Proper miniupnpc CMake detection

This commit is contained in:
Mikhail Titov 2015-11-11 13:45:37 -06:00
parent 94d0915004
commit 7f27580f1b

View file

@ -4,12 +4,12 @@ if(MINIUPNPC_INCLUDE_DIR)
set(MINIUPNPC_FOUND TRUE)
else()
find_path(MINIUPNPC_INCLUDE_DIR miniupnpc.h
/usr/include/miniupnpc
/usr/local/include/miniupnpc
/opt/local/include/miniupnpc
$ENV{SystemDrive}/miniupnpc
${PROJECT_SOURCE_DIR}/../../miniupnpc
find_path(MINIUPNPC_INCLUDE_DIR miniupnpc/miniupnpc.h
/usr/include
/usr/local/include
/opt/local/include
$ENV{SystemDrive}
${PROJECT_SOURCE_DIR}/../..
)
if(MINIUPNPC_INCLUDE_DIR)