summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-05-27 22:38:14 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-05-27 22:38:14 +0200
commit006ef4951ebce8f9fcd1432991ff33f4f138e718 (patch)
tree6e951a03d81403dc81e05cb08ba031e141bb2007
parent725d740bc3ae0851440eddf4c9a5c52244968989 (diff)
cmake/pkg-config: print informative message
-rw-r--r--cmake/opentrack-pkg-config.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/opentrack-pkg-config.cmake b/cmake/opentrack-pkg-config.cmake
index e9136563..218bba6e 100644
--- a/cmake/opentrack-pkg-config.cmake
+++ b/cmake/opentrack-pkg-config.cmake
@@ -6,11 +6,13 @@ function(otr_pkgconfig target)
set(ldflags "")
foreach(i ${ARGN})
set(k pkg-config_${i})
- pkg_check_modules(${k} REQUIRED QUIET ${i})
+ pkg_check_modules(${k} QUIET ${i})
if(${${k}_FOUND})
set(cflags "${cflags} ${${k}_CFLAGS} ")
set(includes ${includes} ${${k}_INCLUDE_DIRS} ${${k}_INCLUDEDIR})
set(ldflags "${ldflags} ${${k}_LDFLAGS} ")
+ else()
+ message(FATAL_ERROR "Can't find '${i}'. Please install development files for this package.")
endif()
endforeach()
#message(STATUS "foo | ${cflags} | ${includes} | ${ldflags}")