Alexander Neundorf wrote:
Hi, currently FindQt4.cmake defines the following variables: QT_QTFOO_LIBRARY_DEBUG: the debug version of the QtFoo library QT_QTFOO_LIBRARY: the release version of the QtFoo library if it was found, otherwise also the debug version I'd like to change it to: QT_QTFOO_LIBRARY_DEBUG: the debug version of the QtFoo library QT_QTFOO_LIBRARY_RELEASE: the release version of the QtFoo library QT_QTFOO_LIBRARIES: the debug version of QtFoo if only the debug version has been found, the release version of QtFoo if only the release version has been found, and "optimized ${QT_QTFOO_LIBRARY_RELEASE} debug ${QT_QTFOO_LIBRARY_DEBUG}" if both have been found. What do you think ? This would also mean that QT_QTFOO_LIBRARY wouldn't exist anymore. Does it have to be kept for compatibility ? If yes, should it behave like QT_QTFOO_LIBRARY_RELEASE or QT_QTFOO_LIBRARIES ?
That sounds fine to me. For compatibility set QT_QTFOO_LIBRARY to the value of QT_QTFOO_LIBRARY_RELEASE after it is found, but only if CMAKE_BACKWARDS_COMPATIBILITY is set to 2.2 or earlier.
-Brad _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake