Commit a3a50bab authored by Antenore Gatta's avatar Antenore Gatta

Give precedence to libfreerdp and winpr libs

parent 75582956
......@@ -30,27 +30,27 @@ find_path(FREERDP_INCLUDE_DIR NAMES freerdp/freerdp.h
find_path(WINPR_INCLUDE_DIR NAMES winpr/winpr.h
HINTS ${PC_FREERDP_INCLUDEDIR} ${PC_FREERDP_INCLUDE_DIRS} ${CMAKE_PREFIX_PATH}/include/winpr2/)
find_library(FREERDP_LIBRARY NAMES freerdp
find_library(FREERDP_LIBRARY NAMES freerdp2
HINTS ${PC_FREERDP_LIBDIR} ${PC_FREERDP_LIBRARY_DIRS})
if(NOT FREERDP_LIBRARY)
find_library(FREERDP_LIBRARY NAMES freerdp2
find_library(FREERDP_LIBRARY NAMES freerdp
HINTS ${PC_FREERDP_LIBDIR} ${PC_FREERDP_LIBRARY_DIRS})
endif()
find_library(FREERDP_CLIENT_LIBRARY NAMES freerdp-client
find_library(FREERDP_CLIENT_LIBRARY NAMES freerdp-client2
HINTS ${PC_FREERDP_LIBDIR} ${PC_FREERDP_LIBRARY_DIRS})
if(NOT FREERDP_CLIENT_LIBRARY)
find_library(FREERDP_CLIENT_LIBRARY NAMES freerdp-client2
find_library(FREERDP_CLIENT_LIBRARY NAMES freerdp-client
HINTS ${PC_FREERDP_LIBDIR} ${PC_FREERDP_LIBRARY_DIRS})
endif()
find_library(FREERDP_WINPR_LIBRARY NAMES winpr
find_library(FREERDP_WINPR_LIBRARY NAMES winpr2
HINTS ${PC_FREERDP_LIBDIR} ${PC_FREERDP_LIBRARY_DIRS})
if(NOT FREERDP_WINPR_LIBRARY)
find_library(FREERDP_WINPR_LIBRARY NAMES winpr2
find_library(FREERDP_WINPR_LIBRARY NAMES winpr
HINTS ${PC_FREERDP_LIBDIR} ${PC_FREERDP_LIBRARY_DIRS})
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment