Hi, > Can you try this with a newer CMake version? Perhaps the 2.8.5 that just came > out?
Same results. How I think I found some interesting thing. It works just fine in this order: find_package(Qt4) if(QT_QTDECLARATIVE_FOUND) add_subdirectory(touch) else(QT_QTDECLARATIVE_FOUND) message(WARNING "Qt installation lacks Qt Declarative - disabling touch based player") endif(QT_QTDECLARATIVE_FOUND) if(WITH_KDE) find_package(KDE4) if(KDE4_FOUND) include_directories(${KDE4_INCLUDES}) add_subdirectory(kde) add_subdirectory(kdeext) if(BUILD_PLASMOID) add_subdirectory(plasmoid) endif(BUILD_PLASMOID) else(KDE4_FOUND) message(STATUS "WITH_KDE is enabled but KDE libraries are not found - not building the KDE players or the Plasmoid") endif(KDE4_FOUND) endif(WITH_KDE) However, if I change the order for this, it stops working: if(WITH_KDE) find_package(KDE4) if(KDE4_FOUND) include_directories(${KDE4_INCLUDES}) add_subdirectory(kde) add_subdirectory(kdeext) if(BUILD_PLASMOID) add_subdirectory(plasmoid) endif(BUILD_PLASMOID) else(KDE4_FOUND) message(STATUS "WITH_KDE is enabled but KDE libraries are not found - not building the KDE players or the Plasmoid") endif(KDE4_FOUND) endif(WITH_KDE) find_package(Qt4) if(QT_QTDECLARATIVE_FOUND) add_subdirectory(touch) else(QT_QTDECLARATIVE_FOUND) message(WARNING "Qt installation lacks Qt Declarative - disabling touch based player") endif(QT_QTDECLARATIVE_FOUND) If I put the find_package(Qt4) macro before the find_package(KDE4) macro, it works as expected. If I put that after, it does not. I guess this is the key here. I do not know those macros actually and I do not have time right now to look into their internal source, but that is the culsprit somehow. Best Regards, Laszlo Papp _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake