From kde-commits Mon Jun 10 11:27:08 2013 From: Arno Rehn Date: Mon, 10 Jun 2013 11:27:08 +0000 To: kde-commits Subject: [smokekde] /: apply a fix from Ben Cooksley to correctly find the QTDEFINES file Message-Id: <20130610112708.E07F6A6067 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=137086363709506 Git commit 95f3a6257a51fb574b9086c7f3ed9c2499561832 by Arno Rehn. Committed on 10/06/2013 at 13:26. Pushed by arnorehn into branch 'master'. apply a fix from Ben Cooksley to correctly find the QTDEFINES file M +5 -1 CMakeLists.txt http://commits.kde.org/smokekde/95f3a6257a51fb574b9086c7f3ed9c2499561832 diff --git a/CMakeLists.txt b/CMakeLists.txt index c8ece6a..a6fc965 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,11 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${SMOKE_CMAKE= _MODULE_DIR}) include(MacroLibrary) include(MacroOptionalAddBindings) = -set(QTDEFINES_FILE ${SMOKE_GEN_SHARED}/qtdefines CACHE FILEPATH "Path to t= he qtdefines file") +find_path(QTDEFINES_FILE + qtdefines + PATH_SUFFIXES share/smokegen + DOC "Path to the qtdefines file") + if(NOT EXISTS ${QTDEFINES_FILE}) message(FATAL_ERROR "${QTDEFINES_FILE} doesn't exist. Please adjust th= e path manually") endif(NOT EXISTS ${QTDEFINES_FILE})