From 9104fa924859f4a865016f2138c06ec856f449d4 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Thu, 12 Jul 2012 17:19:45 -0400 Subject: [PATCH] Display message when wrap option is forced to True because of PythonQt_Wrap_QtAll --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e356304e..633cd9ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,10 @@ endforeach() if(PythonQt_Wrap_QtAll) list(REMOVE_ITEM qtlibs xmlpatterns) # xmlpatterns wrapper does *NOT* build at all :( foreach(qtlib ${qtlibs}) - set(PythonQt_Wrap_Qt${qtlib} ON CACHE BOOL "Make all of Qt${qtlib} available in python" FORCE) + if(NOT ${PythonQt_Wrap_Qt${qtlib}}) + set(PythonQt_Wrap_Qt${qtlib} ON CACHE BOOL "Make all of Qt${qtlib} available in python" FORCE) + message(STATUS "Enabling [PythonQt_Wrap_Qt${qtlib}] because of [PythonQt_Wrap_QtAll] evaluates to True") + endif() endforeach() endif()