[cmake-developers] [CMake 0012594]: Codeblocks generator ignores CMP0005
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=12594 == Reported By:David C. Lonie Assigned To: == Project:CMake Issue ID: 12594 Category: (No Category) Reproducibility:always Severity: minor Priority: normal Status: new == Date Submitted: 2011-11-28 10:34 EST Last Modified: 2011-11-28 10:34 EST == Summary:Codeblocks generator ignores CMP0005 Description: I originally submitted this bug to QtCreator, and was referred here. For reference: http://bugreports.qt.nokia.com/browse/QTCREATORBUG-6479 I have the snippet: # define TESTDATADIR for tests that need input files cmake_policy(SET CMP0005 NEW) # needed for line below (escapes value) add_definitions( -DTESTDATADIR=${CMAKE_SOURCE_DIR}/tests/sampledata/) and the following line is generated in the Codeblocks file: Add option=-DTESTDATADIR=/tmp/XtalOpt/tests/sampledata/ / which does not escape the internal quotes. Steps to Reproduce: Clone the repository at http://github.com/dlonie/XtalOpt, and run cmake with -DBUILD_TESTS=true using the codeblocks generator. == Issue History Date ModifiedUsername FieldChange == 2011-11-28 10:34 David C. Lonie New Issue == -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] Generating imported library targets without the cmake executable
On 11/28/2011 05:51 PM, Brad King wrote: On 11/25/2011 10:02 AM, Stephen Kelly wrote: https://qt.gitorious.org/+kdab-developers/qt/kdab-developers-qtbase/ the branch is cmake_files. The testing steps are: 1) build and install Qt It doesn't appear to build at all on Windows with VS 9: Thanks for trying this. It could be that Qt requires VS10 on Windows. According to this page: http://developer.qt.nokia.com/wiki/Qt_5.0 If you have that available could you try with it? I had someone else trying to test the cmake stuff on windows (Qt built fine for him), but for some reason he was getting linker errors which I couldn't explain. It might need someone familiar with both CMake and windows to figure out. kdab-developers-qtbase\include\qtgui\../../src/gui/kernel/qwindowdefs.h(147) : error C2065: 'WId' : undeclared identifier The #if blocks above that error do have a case for Windows but it does not define WId. It looks like commit 401f0783 removed src/gui/kernel/qwindowdefs_win.h and then commit 66febd27 restored it but with that line missing. See: $ git diff 401f0783^:src/gui/kernel/qwindowdefs_win.h 66febd27:src/gui/kernel/qwindowdefs_win.h @@ -115,8 +115,6 @@ typedef long HRESULT; #endif typedef struct tagMSG MSG; -typedef HWND WId; - QT_BEGIN_NAMESPACE Restoring the line gets only slightly further and stops with NMAKE : fatal error U1073: don't know how to make 'image\qpixmap_win.cpp' -Brad -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
[cmake-developers] Windows build issues? (Was Re: Generating imported library targets without the cmake executable)
Hi, Is Qt supposed to be buildable with VS 10 on Windows? Context here: http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/2338/focus=2347 Thanks, Steve.---BeginMessage--- On 11/28/2011 11:57 AM, Stephen Kelly wrote: On 11/28/2011 05:51 PM, Brad King wrote: On 11/25/2011 10:02 AM, Stephen Kelly wrote: https://qt.gitorious.org/+kdab-developers/qt/kdab-developers-qtbase/ the branch is cmake_files. The testing steps are: 1) build and install Qt It doesn't appear to build at all on Windows with VS 9: Thanks for trying this. It could be that Qt requires VS10 on Windows. According to this page: http://developer.qt.nokia.com/wiki/Qt_5.0 If you have that available could you try with it? Same problem with VS 10 sp1. -Brad -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers ---End Message--- -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
Re: [cmake-developers] Generating imported library targets without the cmake executable
On Friday 25 November 2011, Stephen Kelly wrote: Alexander Neundorf wrote: On Friday 25 November 2011, Stephen Kelly wrote: Stephen Kelly wrote: Hi there, I am working on installing CMake config files from the Qt repository so that there is less need for a FindQt.cmake. By the way, it would be very helpful if anyone tried to build and test this on windows and mac. The clone is at https://qt.gitorious.org/+kdab-developers/qt/kdab-developers-qtbase/ the branch is cmake_files. The testing steps are: 1) build and install Qt 2) cd qtbase/tests/manual/cmake 3) mkdir build cd build 4) cmake .. make 5) No error reported == success. Could you maybe put the generated .cmake files somewhere ? This would save hours in downloading, compiling etc. I think you'll get more and quicker feedback then. I can't generate the files. I'm asking people with windows and mac setups to generate them and post them for review. I don't have those setups. Just the ones for Linux would already help :-) Alex -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers