Re: [CMake] How to set platform-specific compiler-options from within CMakeFiles

2008-06-06 Thread Martin Apel
Thanks for your help. The problem is, that CMAKE_SYSTEM is not set at the time the INCLUDE statement is necessary. The PROJECT statement seems to cause it to be defined and at the same time sets the compiler flags. If I put the INCLUDE before PROJECT, then CMAKE_SYSTEM is not available, only

[CMake] Copyright.txt

2008-06-06 Thread Pierre Habouzit
In CMake tarball, Copyright.txt reads: [...] * Modified source versions must be plainly marked as such, and must not be misrepresented as being the original software. [...] But at the same time source file headers advertise http://www.cmake.org/HTML/Copyright.html which has no such

Re: [CMake] Force out of source build

2008-06-06 Thread hsanson
Andreas Schneider wrote: hsanson wrote: So how can I cause CMake to fail if I run it on the source directory?? Hi, try https://dev.csync.org/browser/cmake/Modules/MacroEnsureOutOfSourceBuild.cmake Thanks, The url above did not work for me but a Google search for

[CMake] FIND_PACKAGE from another Project

2008-06-06 Thread hsanson
From the CMake 2.4 documentation I get: Directories listed in CMAKE_MODULE_PATH are searched for files called Findname.cmake. If no such file is found, it is expected that the package is another project built by CMake that has a nameConfig.cmake file. A cache entry called name_DIR is created

[CMake] Code::Blocks generator setting in CMakeLists

2008-06-06 Thread Roy van Pelt
Dear all, Is it possible to include the generator choice into the CMakeLists.txt? I know for windows the CMake tool allows to configure the development environment. But for Linux you have to configure it using a parameter for CMake. I would like to incorporate this in my CMakeList if possible.

Re: [CMake] How to set platform-specific compiler-options from within CMakeFiles

2008-06-06 Thread Mike Jackson
typically, the PROJECT() statement is the first line of your CMakeLists.txt. Could you explain your project layout a bit more? -- Mike Jackson Senior Research Engineer Innovative Management Technology Services On Jun 6, 2008, at 2:31 AM, Martin Apel wrote: Thanks for your help. The

Re: [CMake] How to set platform-specific compiler-options from within CMakeFiles

2008-06-06 Thread Martin Apel
Mike Jackson wrote: typically, the PROJECT() statement is the first line of your CMakeLists.txt. Could you explain your project layout a bit more? I found out, that CMAKE_CXX_FLAGS is set to the compound of $ENV{CXXFLAGS} and the platform-specific default at the time, the PROJECT statement

Re: [CMake] How to set platform-specific compiler-options from within CMakeFiles

2008-06-06 Thread Bill Hoffman
Martin Apel wrote: Mike Jackson wrote: typically, the PROJECT() statement is the first line of your CMakeLists.txt. Could you explain your project layout a bit more? I found out, that CMAKE_CXX_FLAGS is set to the compound of $ENV{CXXFLAGS} and the platform-specific default at the time, the

Re: [CMake] Force out of source build

2008-06-06 Thread Mathieu Malaterre
The macro is incomplete AFAIK. You might want to consider adding this too: http://www.cmake.org/pipermail/cmake/2008-March/020390.html On Fri, Jun 6, 2008 at 10:23 AM, hsanson [EMAIL PROTECTED] wrote: Andreas Schneider wrote: hsanson wrote: So how can I cause CMake to fail if I run it on

Re: [CMake] Force out of source build

2008-06-06 Thread Horacio Sanson
Thanks, This is what I have now MACRO(MACRO_ENSURE_OUT_OF_SOURCE_BUILD) STRING(COMPARE EQUAL ${${PROJECT_NAME}_SOURCE_DIR} ${${PROJECT_NAME}_BINARY_DIR} insource) GET_FILENAME_COMPONENT(PARENTDIR ${${PROJECT_NAME}_SOURCE_DIR} PATH) STRING(COMPARE EQUAL ${${PROJECT_NAME}_SOURCE_DIR}

Re: [CMake] Force out of source build

2008-06-06 Thread Mathieu Malaterre
On Fri, Jun 6, 2008 at 4:18 PM, Horacio Sanson [EMAIL PROTECTED] wrote: Thanks, This is what I have now MACRO(MACRO_ENSURE_OUT_OF_SOURCE_BUILD) STRING(COMPARE EQUAL ${${PROJECT_NAME}_SOURCE_DIR} ${${PROJECT_NAME}_BINARY_DIR} insource) GET_FILENAME_COMPONENT(PARENTDIR

[CMake] Build RC With MinGW and CMake

2008-06-06 Thread Jack Edmonds
I am trying to use CMake to compile a project using MinGW on Windows and I need to be able to compile in a .rc file generated by Visual Studio. I have tried setting variables such as CMAKE_COMPILE_RESOURCE as described at http://www.cmake.org/pipermail/cmake/2005-July/006871.html but that only

[CMake] OSX Bundle Generator for Cpack

2008-06-06 Thread Shead, Timothy
Folks: I've just posted a patch that introduces a prototype OSX bundle generator here: http://public.kitware.com/Bug/view.php?id=7170 Along with a writeup in the wiki here: http://www.cmake.org/Wiki/User:Tshead/OSX_CPack_Bundle_Generator I started the new generator because I needed more

Re: [CMake] OSX Bundle Generator for Cpack

2008-06-06 Thread Benjamin Reed
On Fri, Jun 6, 2008 at 12:42 PM, Shead, Timothy [EMAIL PROTECTED] wrote: http://www.cmake.org/Wiki/User:Tshead/OSX_CPack_Bundle_Generator Neat! I started the new generator because I needed more control over the final output than current approaches provided. In particular, I needed to skip

[CMake] Setting debug command parameters with cmake

2008-06-06 Thread David Solbach
Hi, is it possible to set debug command parameters for targets added with ADD_EXECUTABLE in CMakeLists.txt so they are created in KDevelop or Visual Studio project settings? Any help would be appreciated. David ___ CMake mailing list

Re: [CMake] OSX Bundle Generator for Cpack

2008-06-06 Thread Shead, Timothy
On 6/6/08 10:49 AM, Benjamin Reed [EMAIL PROTECTED] wrote: On Fri, Jun 6, 2008 at 12:42 PM, Shead, Timothy [EMAIL PROTECTED] wrote: I started the new generator because I needed more control over the final output than current approaches provided. In particular, I needed to skip starting X11

Re: [CMake] Setting debug command parameters with cmake

2008-06-06 Thread Bill Hoffman
David Solbach wrote: Hi, is it possible to set debug command parameters for targets added with ADD_EXECUTABLE in CMakeLists.txt so they are created in KDevelop or Visual Studio project settings? Any help would be appreciated. With visual studio, no. That information is stored in a

Re: [CMake] OSX Bundle Generator for Cpack

2008-06-06 Thread Sean McBride
On 6/6/08 12:49 PM, Benjamin Reed said: One thing I would recommend, DYLD_LIBRARY_PATH should be considered harmful except for very specific uses. Benjamin is probably referring to: http://docs.info.apple.com/article.html?artnum=305509 --

Re: [CMake] Package: dev vs runtime package

2008-06-06 Thread Mathieu Malaterre
On Thu, Jun 5, 2008 at 4:02 PM, Mathieu Malaterre [EMAIL PROTECTED] wrote: On Thu, Jun 5, 2008 at 3:54 PM, Timenkov Yuri [EMAIL PROTECTED] wrote: On Thursday 05 June 2008 17:47:27 Mathieu Malaterre wrote: On Thu, Jun 5, 2008 at 3:39 PM, Timenkov Yuri [EMAIL PROTECTED] wrote: On Thursday 05

Re: [CMake] OSX Bundle Generator for Cpack

2008-06-06 Thread Benjamin Reed
On Fri, Jun 6, 2008 at 1:44 PM, Sean McBride [EMAIL PROTECTED] wrote: One thing I would recommend, DYLD_LIBRARY_PATH should be considered harmful except for very specific uses. Benjamin is probably referring to: http://docs.info.apple.com/article.html?artnum=305509 That too, but... The

Re: [CMake] Package: dev vs runtime package

2008-06-06 Thread David Cole
Look at the cmake_install.cmake file in the top level of your build tree. There should be references to CMAKE_INSTALL_COMPONENT and COMPONENT variables. make install will typically do a cmake -P cmake_install.cmake -- to do a COMPONENT based install, you can do: cmake -DCOMPONENT=Runtime -P

Re: [CMake] Package: dev vs runtime package

2008-06-06 Thread Mathieu Malaterre
Hi David, After a google search I actually found your previous post too: http://www.cmake.org/pipermail/cmake/2008-January/019327.html Thanks, will look into paraview's code for example. Thanks -Mathieu On Fri, Jun 6, 2008 at 10:52 PM, David Cole [EMAIL PROTECTED] wrote: Look at the

[CMake] cmake 2.6.0 - eclipse CDT - lib project

2008-06-06 Thread Olivier Tournaire
Hi all, I am currently tring to import a cmake generated project in eclipse. This project is a lib, and eclipse does not seem to be able to load it. Everything works fine when importing an executable project (FileImportGeneralExisting projectEnd). When importing my lib project, The end button in

Re: [CMake] cmake 2.6.0 - eclipse CDT - lib project

2008-06-06 Thread Mike Jackson
There is an option in the Build settings of your Eclipse Project in the Behavior tab where you can tell eclipse to compile on N number of threads. You can also directly set the -j [n] option by using a custom build command. As far as Debug and Release in the same project, Not sure. Probably