[CMake] QT_INCLUDE_DIR not in the cache when using framework
Nicolas Desprès
nicolas.despres at gmail.com
Tue Feb 3 11:42:40 EST 2009
On Tue, Feb 3, 2009 at 4:23 PM, Clinton Stimpson <clinton at elemtech.com> wrote:
>
> I'm curious what do you need it for?
I'm using a git and I have several project sharing the same submodule
as a shared library. All these projects use Qt and a set of others
libraries. I factor all the CMake code searching for them in the root
CMakeLists.txt of this shared library. This way I can also compile it
like any other project. Since the variable is not stored in the cache
I cannot use it in parent/sibling directory.
A working workaround could be to put this code in .cmake file and
include it where needed but I would like to understand why
QT_INCLUDE_DIR is not stored in the cache in this special case.
NOTE: When not using framework it is stored in the cache.
Nico
> Nicolas Desprès wrote:
>>
>> In other word, I would like to know if someone is against requesting
>> QT_INCLUDE_DIR in the cache when framework are used? If no one, I'll
>> add a feature request.
>>
>> Cheers,
>>
>> Nico
>>
>> On Tue, Feb 3, 2009 at 1:12 PM, Nicolas Desprès
>> <nicolas.despres at gmail.com> wrote:
>>
>>>
>>> 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
>>>
>>>
>>
>>
>>
>>
>
>
>
--
Nicolas Desprès
More information about the CMake
mailing list