cmake problem on win32

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Wed Oct 22 06:32:35 CEST 2008


Andreas Pakulat schrieb:
> On 21.10.08 22:48:39, Andreas Pakulat wrote:
>> Hi,
>>
>> I've got a small problem here with using INCLUDE_INSTALL_DIR during cmake
>> time. It seems as if that variable is set to "include" instead of an
>> absolute path. This causes a problem with kdevplatform, because that
>> variable is used to write a KDevPlatformConfig.cmake with the right
>> include-dir.
>>
>> This file now ends up with
>>
>> set(KDevPlatform_INCLUDE_DIR "include/kdevplatform") 
>>
>> which of course doesn't work. 
>>
>> Everything is fine on linux, it only breaks on windows.
>>
>> KDevPlatformConfig.cmake.in looks like this:
>>
>> set(KDevPlatform_INCLUDE_DIR "@INCLUDE_INSTALL_DIR@/kdevplatform")
> 
> Apparently the reason is FindKDE4Internal.cmake. On Win32 it sets the
> variable to just "include", while on other platforms it also prepends
> CMAKE_INSTALL_PREFIX. This seems to happen for all other variables set
> there as well, is this intentional? Can it be changed to be the same on
> all platforms? I'd like to avoid the extra check in KDevPlatform if
> possible.
> 
Where does INCLUDE_INSTALL_DIR come from? You can't know where the user 
installs your app in the end so using INCLUDE_INSTALL_DIR on windows 
isn't a good idea at all.


Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
Url : http://mail.kde.org/pipermail/kde-windows/attachments/20081022/232e1929/attachment.sig 


More information about the Kde-windows mailing list