Don't look for a package when we don't need to
Jeffrey Pfau jeffrey@endrift.com
Tue, 07 Oct 2014 02:54:05 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
CMakeLists.txt
→
CMakeLists.txt
@@ -26,6 +26,9 @@
# Function definitions include(FindPkgConfig) function(find_feature FEATURE_NAME FEATURE_REQUIRES) + if (NOT ${FEATURE_NAME}) + return() + endif() foreach(REQUIRE ${FEATURE_REQUIRES}) find_package(${REQUIRE} QUIET) pkg_search_module(${REQUIRE} ${REQUIRE})