[cmake-developers] [CMake 0012496]: Compiler tests ignore variables from command line when using toolchain file

2011-10-06 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=12496 == Reported By:Markus Klinik Assigned To:

[cmake-developers] [CMake 0012499]: VS 2010 custom rules with no output need to not have a command line

2011-10-06 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=12499 == Reported By:James Bigler Assigned To:

Re: [cmake-developers] Strange VS output file field

2011-10-06 Thread James Bigler
On Wed, Oct 5, 2011 at 3:45 PM, James Bigler jamesbig...@gmail.com wrote: On Fri, Aug 19, 2011 at 10:41 AM, David Cole david.c...@kitware.comwrote: On Thu, Aug 18, 2011 at 4:56 PM, David Cole david.c...@kitware.com wrote: On Thu, Aug 18, 2011 at 1:30 PM, David Cole david.c...@kitware.com

Re: [cmake-developers] Setting the link interface and dependencies in one command

2011-10-06 Thread Stephen Kelly
Brad King wrote: On 10/5/2011 9:47 AM, Stephen Kelly wrote: Thanks for all of your explanations. It seems that introducing a way to do this with one command has some support. So if SOME_FEATURE is true, target_link_libraries(foo bar SOME_KEYWORD baz) if (SOME_FEATURE)

Re: [cmake-developers] Setting the link interface and dependencies in one command

2011-10-06 Thread Stephen Kelly
Stephen Kelly wrote: Other possible names? Perhaps LINK_PUBLIC and LINK_PRIVATE? Perhaps LINK AND LINK_ONLY? I'll implement it as you suggest with LINK_PUBLIC and LINK_PRIVATE, which are most clear to me. We can change it once we have an implementation to talk about. Well that didn't

Re: [cmake-developers] Setting the link interface and dependencies in one command

2011-10-06 Thread Stephen Kelly
Stephen Kelly wrote: target_link_libraries(foo LINK_PUBLIC qtcore qtnetwork ) is equivalent to target_link_libraries(foo qtcore qtnetwork ) * foo will link against qtcore and qtnetwork I should have also noted that both qtcore and qtnetwork will also be in the

Re: [CMake] Include source files on a per-configuration basis

2011-10-06 Thread Michael Hertling
On 10/06/2011 07:04 AM, Michael Wild wrote: On Thu 06 Oct 2011 05:17:00 AM CEST, Michael Hertling wrote: On 10/05/2011 10:47 PM, Robert Dailey wrote: In my particular CMake project, I have three CPP files: a.cpp b.cpp c.cpp I want 'a.cpp' to be compiled in all configurations

[CMake] Custom install target

2011-10-06 Thread ycollette . nospam
Hello, I would like to create a custom install target: install-update The things done by this target are: - change CMAKE_INSTALL_PREFIX to a specific directory: CMAKE_BINARY_PREFIX/PROJECT_NAME-REVISION_NUMBER - run make install I don't know how to launch a defined target from within cmake. Is

[CMake] modifying the PATH during NSIS intallation

2011-10-06 Thread pellegrini
Hi all, I recently discovered the (very) useful CPack program from CMake. I would like to build an NSIS installer that, when launched, will, as well as installing my package, will also modify the PATH with the directory where my executables have been installed. Is that something (if so, how)

[CMake] Still problems with add_custom_command

2011-10-06 Thread Martin Kupke
Hi, in my CMake project I have the need for a custom command that should be processed in case a file is touched...that is the file the custom command depends on. I already use the add_custom_command and add_custom_target CMake instructions in my project, but always for CMakeLists.txt files

[CMake] Version 2.8.6 Issues with Cmake-Gui and CTest

2011-10-06 Thread Sheri
I was previously using 2.8.0. With 2.8.6 (from zipped binaries for win32-x86) I immediately noticed a couple oddities: My Wacom mouse can't seem to activate any controls on Cmake-Gui. It still works fine with 2.8.0. When the new version of CTest runs, my firewall reports it is trying to

Re: [CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-10-06 Thread Arnaud Gelas
Hi Bill, Here are some timing, I made for ITK to compare ninja vs make (made last month). See results below The difference is not much, especially when you realized that none of the data have been downloaded, and I am not sure that at the end we get the same binary tree... Encouraging

Re: [CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-10-06 Thread Bill Hoffman
On 10/6/2011 12:07 PM, Arnaud Gelas wrote: Hi Bill, Here are some timing, I made for ITK to compare ninja vs make (made last month). See results below The difference is not much, especially when you realized that none of the data have been downloaded, and I am not sure that at the end we get

Re: [CMake] Version 2.8.6 Issues with Cmake-Gui and CTest

2011-10-06 Thread Bill Hoffman
On 10/6/2011 11:50 AM, Sheri wrote: I was previously using 2.8.0. With 2.8.6 (from zipped binaries for win32-x86) I immediately noticed a couple oddities: My Wacom mouse can't seem to activate any controls on Cmake-Gui. It still works fine with 2.8.0. Do other mice work? I can't see how there

[CMake] STREQUAL not functioning?

2011-10-06 Thread Robert Dailey
According to the CMake documentation, the `STREQUAL` comparison is allowed to take either a VARIABLE or a STRING as either parameter. So, in this example below, the message does NOT print, which is broken: set( FUBARTEST OK ) if( FUBARTEST STREQUAL OK ) message( It Worked )

Re: [CMake] STREQUAL not functioning?

2011-10-06 Thread Eric Noulard
2011/10/6 Robert Dailey rcdai...@gmail.com: According to the CMake documentation, the `STREQUAL` comparison is allowed to take either a VARIABLE or a STRING as either parameter. So, in this example below, the message does NOT print, which is broken:     set( FUBARTEST OK )     if( FUBARTEST

Re: [CMake] STREQUAL not functioning?

2011-10-06 Thread Robert Dailey
Well there you go, deleting the cache reconfiguring fixed it. That was weird. Thanks for the help! - Robert Dailey On Thu, Oct 6, 2011 at 1:50 PM, Robert Dailey rcdai...@gmail.com wrote: Ok interesting, it is working for me too. I guess my reproducible use case was invalid. (BTW,

Re: [CMake] Version 2.8.6 Issues with Cmake-Gui and CTest

2011-10-06 Thread Andreas Pakulat
On 06.10.11 20:21:33, Andreas Pakulat wrote: On 06.10.11 12:30:09, Bill Hoffman wrote: On 10/6/2011 11:50 AM, Sheri wrote: I was previously using 2.8.0. With 2.8.6 (from zipped binaries for win32-x86) I immediately noticed a couple oddities: My Wacom mouse can't seem to activate

Re: [CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-10-06 Thread Peter Kümmel
OK, so I think this project is way too small for this test. There is some fixed overhead in the process here, and we are seeing it. We are talking about .5 seconds difference to check a whole build system. If you want to do tests like this, you need a much bigger project. I am sure that

Re: [CMake] FindQt4

2011-10-06 Thread Clinton Stimpson
On Friday, September 30, 2011 03:54:26 pm MM wrote: hi, I generated a msvc10 solution with cmake 2.8.5. I use the following in the project's CMakeLists.txt FIND_PACKAGE(Qt4 4.5.3 COMPONENTS QtCore QtGui QtOpenGL REQUIRED) IF(QT4_FOUND) INCLUDE(${QT_USE_FILE})

Re: [CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-10-06 Thread Peter Kümmel
On 06.10.2011 21:14, Peter Kümmel wrote: OK, so I think this project is way too small for this test. There is some fixed overhead in the process here, and we are seeing it. We are talking about .5 seconds difference to check a whole build system. If you want to do tests like this, you need a

[CMake] Target-specific include directories?

2011-10-06 Thread Robert Dailey
I'm using cmake (through the GUI) on Windows (version 2.8.5). Currently I have a define_project() function that all 100 or so sub-directories use to define its project. This function calls add_executable(), sets target properties, and everything necessary to set it up properly to build in Visual

Re: [CMake] Version 2.8.6 Issues with Cmake-Gui and CTest

2011-10-06 Thread Sheri
On 10/6/2011 12:30 PM, Bill Hoffman wrote: On 10/6/2011 11:50 AM, Sheri wrote: I was previously using 2.8.0. With 2.8.6 (from zipped binaries for win32-x86) I immediately noticed a couple oddities: My Wacom mouse can't seem to activate any controls on Cmake-Gui. It still works fine with

Re: [CMake] STREQUAL not functioning?

2011-10-06 Thread Michael Hertling
On 10/06/2011 08:51 PM, Robert Dailey wrote: Well there you go, deleting the cache reconfiguring fixed it. That was weird. Thanks for the help! FYI, the attached CMakeLists.txt examines a variable's value in 5 cases: NONEXIST: No value in current scope or in cache. SCOPEONLY: Value in

Re: [CMake] Version 2.8.6 Issues with Cmake-Gui and CTest

2011-10-06 Thread Sheri
On 10/6/2011 5:35 PM, Sheri wrote: On 10/6/2011 12:30 PM, Bill Hoffman wrote: On 10/6/2011 11:50 AM, Sheri wrote: I was previously using 2.8.0. With 2.8.6 (from zipped binaries for win32-x86) I immediately noticed a couple oddities: My Wacom mouse can't seem to activate any controls on

[CMake] CDT generator - CDT 8.0.1 [Visual Studio compiler support]

2011-10-06 Thread Nicholas Yue
Hi, Using CMake 2.8.4, I see Eclipse CDT4 generator support for NMake With the recent release of CDT 8.X, there is Visual Studio compiler as a new/separate toolchain. Are there plans to support that as a generator? Regards -- Nicholas Yue Graphics - RenderMan, Visualization, OpenGL,

Re: [CMake] Still problems with add_custom_command

2011-10-06 Thread Michael Hertling
On 10/06/2011 05:40 PM, Martin Kupke wrote: Hi, in my CMake project I have the need for a custom command that should be processed in case a file is touched...that is the file the custom command depends on. I already use the add_custom_command and add_custom_target CMake instructions in

[CMake] Issue w/ myproj-targets-buildtype.cmake not being generated.

2011-10-06 Thread Raindog
Hello, I have code like the following in my CMakeLists.txt file to make it simpler to import code from a library. install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/../lib/${BUILD_TYPE_GNU_ONLY} EXPORT ${PROJECT_NAME}-targets) install(EXPORT ${PROJECT_NAME}-targets

Re: [CMake] Custom install target

2011-10-06 Thread Michael Hertling
On 10/06/2011 08:23 AM, ycollette.nos...@free.fr wrote: Hello, I would like to create a custom install target: install-update The things done by this target are: - change CMAKE_INSTALL_PREFIX to a specific directory: CMAKE_BINARY_PREFIX/PROJECT_NAME-REVISION_NUMBER - run make install I

Re: [CMake] Issue w/ myproj-targets-buildtype.cmake not being generated.

2011-10-06 Thread Raindog
On 10/6/2011 7:04 PM, Raindog wrote: Hello, I have code like the following in my CMakeLists.txt file to make it simpler to import code from a library. install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/../lib/${BUILD_TYPE_GNU_ONLY} EXPORT ${PROJECT_NAME}-targets)

Re: [CMake] Issue w/ myproj-targets-buildtype.cmake not being generated.

2011-10-06 Thread Raindog
On 10/6/2011 7:56 PM, Raindog wrote: On 10/6/2011 7:04 PM, Raindog wrote: Hello, I have code like the following in my CMakeLists.txt file to make it simpler to import code from a library. install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/../lib/${BUILD_TYPE_GNU_ONLY}