[CMake] QT_INCLUDE_DIR not in the cache when using framework

Nicolas Desprès nicolas.despres at gmail.com
Tue Feb 3 07:12:16 EST 2009


Hi,

I'm using cmake 2.6.2 on macosx and I'm wondering what is the rational
behind the fact QT_INCLUDE_DIR is not stored into the cache when using
framework. Here a quote of FindQt4.cmake:

  IF( QT_QTCORE_INCLUDE_DIR AND NOT QT_INCLUDE_DIR)
    IF (QT_USE_FRAMEWORKS)
      SET(QT_INCLUDE_DIR ${QT_HEADERS_DIR})
    ELSE (QT_USE_FRAMEWORKS)
      STRING( REGEX REPLACE "/QtCore$" "" qt4_include_dir
${QT_QTCORE_INCLUDE_DIR})
      SET( QT_INCLUDE_DIR ${qt4_include_dir} CACHE PATH "")
    ENDIF (QT_USE_FRAMEWORKS)
  ENDIF( QT_QTCORE_INCLUDE_DIR AND NOT QT_INCLUDE_DIR)

-- 
Nicolas Desprès


More information about the CMake mailing list