File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,12 @@ endmacro()
272
272
# End of macros
273
273
# ----------------------------------------------------------------------------
274
274
275
+ # Double-checks pkg-config is reachable
276
+ include (FindPkgConfig)
277
+ if (NOT PKG_CONFIG_FOUND)
278
+ message (FATAL_ERROR "error: could not find binary for `pkg-config' - you cannot build Bob without it." )
279
+ endif ()
280
+
275
281
# Project files
276
282
set (ENABLED_PACKAGES "" )
277
283
add_subdirectory (src)
Original file line number Diff line number Diff line change 7
7
# also defined, but not for general use are
8
8
# Blitz_LIBRARY, where to find the Blitz library.
9
9
10
- include (FindPkgConfig)
11
-
12
10
execute_process (COMMAND ${PKG_CONFIG_EXECUTABLE} blitz --silence-errors --modversion OUTPUT_VARIABLE PKG_CONFIG_blitz_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
13
11
14
12
if (PKG_CONFIG_blitz_VERSION)
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ endif()
44
44
45
45
# Matio
46
46
if (WITH_MATIO)
47
- include (FindPkgConfig)
48
47
pkg_check_modules(matio matio)
49
48
if (matio_FOUND)
50
49
include (CheckCSourceCompiles)
You can’t perform that action at this time.
0 commit comments