Using msvc solution files

Peter Kümmel syntheticpp at gmx.net
Thu Nov 12 20:20:37 CET 2009


Peter Kümmel wrote:
> Peter Kümmel wrote:
>> Alexander Neundorf wrote:
>>>>> https://mail.kde.org/mailman/listinfo/kde-windows
>>>> I don't know about this option, but I wouldn't use the cmake visual
>>>> studio generator since it breaks at least in kdelibs
>>> What breaks ?
>>> I'd really like to know, because I can't remember that I heard of that before.
>> All tests are broken in the IDE: when starting RUN_TESTS, there is everywhere
>> the not expanded variable $(OutDir), should be 'Debug'; eg.:
>>
>>  8/120 Testing kurltest                      Could not find executable
>> K:/kderoot/build/kde/kdelibs-20080202/ide/kdecore/tests/$(OutDir)/kurltest.exe.bat
> 
> Any ideas here Alex?
> 

Fixed, and commited:

Index: cmake/modules/KDE4Macros.cmake
===================================================================
--- cmake/modules/KDE4Macros.cmake      (revision 1048102)
+++ cmake/modules/KDE4Macros.cmake      (working copy)
@@ -803,6 +803,9 @@

     if(WIN32)
       get_target_property( loc ${_targetName} LOCATION )
+      if(MSVC_IDE)
+        STRING(REGEX REPLACE "\\$\\(.*\\)" "\${CTEST_CONFIGURATION_TYPE}" loc "${loc}")
+      endif()
       # .bat because of rpath handling
       set(_executable ${loc}.bat)
     else(WIN32)


More information about the Kde-windows mailing list