From 70da812fd2e79933de4f3863aa866ff25a7c9c6e Mon Sep 17 00:00:00 2001 From: aneejit1 Date: Tue, 7 Jul 2020 23:06:38 +0000 Subject: Ask pkg-config where libICE is before testing for _IceTransNoListen Signed-off-by: aneejit1 (cherry picked from commit 24a8daa732cca8b4cfbc882334c61ff42bd52689) --- ksmserver/ConfigureChecks.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ksmserver') diff --git a/ksmserver/ConfigureChecks.cmake b/ksmserver/ConfigureChecks.cmake index 4f8cf7978..f7eda81b7 100644 --- a/ksmserver/ConfigureChecks.cmake +++ b/ksmserver/ConfigureChecks.cmake @@ -9,4 +9,5 @@ # ################################################# -check_library_exists( ICE _IceTransNoListen "" HAVE__ICETRANSNOLISTEN ) \ No newline at end of file +pkg_search_module( LIBICE ice ) +check_library_exists( ICE _IceTransNoListen "${LIBICE_LIBRARY_DIRS}" HAVE__ICETRANSNOLISTEN ) \ No newline at end of file -- cgit v1.2.1