[CMake] VxWorks Workbench Generator

2011-04-28 Thread Dan Furtney
Anyone know of a generator for Workbench projects? ___ 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.

Re: [CMake] CMake/CPack 2.8.4 - Windows - Can't package files as read-only?

2011-04-28 Thread Alan Garny
> Would try to open the cmake_install.cmake file corresponding to the offending > install(file ...) You should find something like: > > FILE(INSTALL DESTINATION > FILE_PERMISSIONS ) This is not quite what I have. Instead, I have something like: FILE(INSTALL DESTINATION TYPE FILE PERMI

Re: [CMake] CMake/CPack 2.8.4 - Windows - Can't package files as read-only?

2011-04-28 Thread Eric Noulard
2011/4/28 Alan Garny : >> From: Eric Noulard [mailto:eric.noul...@gmail.com] >> 2011/4/28 Alan Garny : >> > Hi, I am using CMake/CPack (version 2.8.4) for my project and >> > everything works fine except for a couple of files that I am trying to >> > package on Windows. I would like those files to

Re: [CMake] CMake/CPack 2.8.4 - Windows - Can't package files as read-only?

2011-04-28 Thread Eric Noulard
2011/4/28 Alan Garny : > Hi, I am using CMake/CPack (version 2.8.4) for my project and everything > works fine except for a couple of files that I am trying to package on > Windows. I would like those files to be read-only. I currently have > something like: > > INSTALL(FILES ${CMAKE_SOURCE_DIR}/my

Re: [CMake] Triggering individual steps of externalproject_add add cmake time

2011-04-28 Thread David Cole
I would strongly encourage you to allow the download to occur at build time using ExternalProject_Add. There's no need to make the configure step of CMake wait for a download. There is no way to execute the custom command steps of an ExternalProject at cmake configure time... If you really want t

[CMake] CMake/CPack 2.8.4 - Windows - Can't package files as read-only?

2011-04-28 Thread Alan Garny
Hi, I am using CMake/CPack (version 2.8.4) for my project and everything works fine except for a couple of files that I am trying to package on Windows. I would like those files to be read-only. I currently have something like: INSTALL(FILES ${CMAKE_SOURCE_DIR}/myFile DESTINATION myDestination

[CMake] Triggering individual steps of externalproject_add add cmake time

2011-04-28 Thread Jan Wurster
Dear list, as I'm encountering a case where I'd like to trigger the download of a file (3rd party) structure from a git repository I've been looking into ExternalProject_add and its benefits. However the key element would be to perform the download step immediately, i.e. at cmake first run time

Re: [CMake] Change variable default

2011-04-28 Thread Ilja Golshtein
Tim, I guess the difference is "project" command defines CMAKE_CXX_FLAGS_DEBUG and does not define CMAKE_Fortran_FLAGS_DEBUG. Regarding CMAKE_*_FLAGS_*_INIT, you are right, but what if user explicitly set the same value as INIT? It would be overwritten! Anyway, I am happy with the solution t

Re: [CMake] Change variable default

2011-04-28 Thread Ilja Golshtein
Tim, thank you. Compiler and environment specific things become defined during "project" command execution. It is too late to check if it is set afterwards because it actually IS SET. I assume you are lucky and default value for CMAKE_Fortran_FLAGS_RELEASE is empty, isn't it? So the tricky poi

Re: [CMake] Change variable default

2011-04-28 Thread Tim Gallagher
To put it in context, our cmake file looks like: if(${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel") if(NOT CMAKE_Fortran_FLAGS_RELEASE) set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -xhost" CACHE STRING "" FORCE) endif() set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -chec

Re: [CMake] osx 10.6 10.5 compability issue

2011-04-28 Thread Yngve Inntjore Levinsen
Hi Michael, I notice you know a lot about CMake and OSX, thanks once again! I'll give it a try asap. Cheers, Yngve On Thursday 28 April 2011 06:04:18 PM Michael Jackson wrote: > You probably want to set the "CMAKE_OSX_DEPLOYMENT_TARGET" to 10.5 and > recompile. > __

Re: [CMake] osx 10.6 10.5 compability issue

2011-04-28 Thread Michael Jackson
You probably want to set the "CMAKE_OSX_DEPLOYMENT_TARGET" to 10.5 and recompile. ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton

[CMake] osx 10.6 10.5 compability issue

2011-04-28 Thread Yngve Inntjore Levinsen
Dear all, I have compiled my code in OSX Snow Leopard, and then a colleague using OSX Leopard wanted to use the bundle. However, he had some strange error saying something like: dyld error: unknown required load command (sorry I don't have the exact error print at hand) I tried to google it a

Re: [CMake] Change variable default

2011-04-28 Thread Yuri Timenkov
I think you're looking exactly for this: http://www.vtk.org/Wiki/CMake_FAQ#How_can_I_build_my_MSVC_application_with_a_static_runtime.3F It's very good use-case, but I wonder why it's called MSVC-specific. On Thu, Apr 28, 2011 at 7:23 PM, Tim Gallagher wrote: > We do this: > > if(NOT CMAKE_Fortran

Re: [CMake] Change variable default

2011-04-28 Thread Tim Gallagher
We do this: if(NOT CMAKE_Fortran_FLAGS_RELEASE) set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -xhost" CACHE STRING "" FORCE) endif() In other words, if the flags haven't been set yet (initial start up), set them to what we want. If they have been set (either changed by the user, or specified on the c

[CMake] Change variable default

2011-04-28 Thread Ilja Golshtein
Hello! There are some CMAKE variables with default values. For example CMAKE_CXX_FLAGS_DEBUG default value is '-g'. How is it possible to make it '-g -Wall'? What I don't want to have: User choice overwritten. What I want to have: Modified a variable cmake-time default. It must be possible to

Re: [CMake] Error out on installation when there is already an installation

2011-04-28 Thread Michael Hertling
On 04/28/2011 01:51 PM, John R. Cary wrote: > This is in reference to > > iter.cary$ cmake --version > cmake version 2.8.3 > iter.cary$ uname -a > Linux iter.txcorp.com 2.6.29.4-167.fc11.x86_64 #1 SMP Wed May 27 > 17:27:08 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux > > > We have a situation where

[CMake] Error out on installation when there is already an installation

2011-04-28 Thread John R. Cary
This is in reference to iter.cary$ cmake --version cmake version 2.8.3 iter.cary$ uname -a Linux iter.txcorp.com 2.6.29.4-167.fc11.x86_64 #1 SMP Wed May 27 17:27:08 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux We have a situation where a package needs to be rebuilt because some dependency is rebui

[CMake] CPack PackageMaker issue

2011-04-28 Thread Eric Noulard
Hi all, Second try to make a package maker package on MacOS using CPack. Now I am trying to understand why I get a "Bill Of Material" error: http://www.cmake.org/pipermail/cmake/2011-April/044081.html Looking at the difference between my pkg and the CMake one I see they seems to have the same s