Add conditional to avoid calling summary_view twice

This commit is contained in:
Àlex Fiestas 2014-03-21 17:47:50 +01:00
parent a9fae41ac0
commit 740616fac3

View file

@ -135,7 +135,9 @@ set_package_properties(XCB PROPERTIES TYPE REQUIRED)
find_package(XCB COMPONENTS ICCCM) find_package(XCB COMPONENTS ICCCM)
add_feature_info("XCB-ICCCM" XCB_ICCCM_FOUND "Required for building test applications for KWin") add_feature_info("XCB-ICCCM" XCB_ICCCM_FOUND "Required for building test applications for KWin")
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
endif()
########### configure tests ############### ########### configure tests ###############
include(CMakeDependentOption) include(CMakeDependentOption)