Re: [CMake] Building the package target as part of the ALL_BUILD target

2011-08-25 Thread James Bigler
Thanks, David. James On Thu, Aug 25, 2011 at 2:43 PM, David Cole wrote: > There's not presently a way to add "package" to "all" -- but you can > easily add a custom target that calls: > > cmake --build . --config Release --target package > > Or directly calls cpack with appropriate arguments. >

Re: [CMake] Building the package target as part of the ALL_BUILD target

2011-08-25 Thread David Cole
There's not presently a way to add "package" to "all" -- but you can easily add a custom target that calls: cmake --build . --config Release --target package Or directly calls cpack with appropriate arguments. And with a custom target, you can make it part of all HTH, David On Thu, Aug 25

[CMake] Building the package target as part of the ALL_BUILD target

2011-08-25 Thread James Bigler
Does anyone know of a way to have the package target built by default? In other words add it to the ADD_BUILD built in target? I'm guessing since there isn't support for adding custom targets to built in CMake targets that this would have to be controlled by some magic CMAKE_ variable. Thanks, J

[CMake] What is the order of the include search path?

2011-08-25 Thread Steve Casselman
How does cmake determine what include path it is going to take? I set CMAKE_SYSTEM_INCLUDE_PATH and CMAKE_INCLUDE_PATH to a place I kn

[CMake] ExternalProject sometimes fails due to cmTryCompileExec

2011-08-25 Thread Tyler
Most of the time, when I build a CMake ExternalProject as part of my larger build, everything works fine: 2>-- Build started: Project: lore_3rdpartylibs_qslog, Configuration: Release x64 -- 2>Creating directories for 'lore_3rdpartylibs_qslog' 2>No download step for 'lore_3rdpartylibs_qslog

[CMake] Re-setting CMAKE_C_COMPILER on command line discards CMAKE_C_FLAGS

2011-08-25 Thread Jed Brown
$ cmake .. '-DCMAKE_C_COMPILER:FILEPATH=mpicc' '-DCMAKE_C_FLAGS:STRING= -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas' [no problems] $ grep CMAKE_C_FLAGS:STRING CMakeCache.txt CMAKE_C_FLAGS:STRING= -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas $ cmake .. [no prob

Re: [CMake] How to determine origin of variable

2011-08-25 Thread David Cole
On Thu, Aug 25, 2011 at 11:45 AM, Martin Weber wrote: > Am 25.08.2011 17:39, schrieb David Cole: >> >> On Thu, Aug 25, 2011 at 7:34 AM, Martin Weber >>  wrote: >>> >>> Hi all, >>> >>> is there a way in CMake to detect, whether a variable has been set on the >>> command-line (with the -D option) an

Re: [CMake] How to determine origin of variable

2011-08-25 Thread Martin Weber
Am 25.08.2011 17:39, schrieb David Cole: On Thu, Aug 25, 2011 at 7:34 AM, Martin Weber wrote: Hi all, is there a way in CMake to detect, whether a variable has been set on the command-line (with the -D option) and not in a CMakelists.txt? For example, GNU-make has the origin function do do so

Re: [CMake] How to determine origin of variable

2011-08-25 Thread David Cole
On Thu, Aug 25, 2011 at 7:34 AM, Martin Weber wrote: > Hi all, > > is there a way in CMake to detect, whether a variable has been set on the > command-line (with the -D option) and not in a CMakelists.txt? > > For example, GNU-make has the origin function do do something similar. > > Thanks, >  Ma

[CMake] Need help with relocatable PackageMaker options in CPack

2011-08-25 Thread Paolo Ciccone
Hello. Let me first thank the authors of CMake for giving us such powerful and flexible tool. I'm trying to deliver a plugin that I wrote to both Mac OS and Windows. I thought of using CPack and it's a mixed bag of success and failure. I could not find information in the CPack documentation so her

Re: [CMake] path for install cmake scripts

2011-08-25 Thread Michael Wild
On Thu 25 Aug 2011 03:37:35 PM CEST, Weng Xuetian wrote: > Hi folks, > I have a program that have some cmake scripts to be installed in order > to add support for find_package for this program's libs. > But I have problem about choose the cmake path. > Currently I use ${CMAKE_ROOT}/Modules to insta

[CMake] path for install cmake scripts

2011-08-25 Thread Weng Xuetian
Hi folks, I have a program that have some cmake scripts to be installed in order to add support for find_package for this program's libs. But I have problem about choose the cmake path. Currently I use ${CMAKE_ROOT}/Modules to install my scripts. But this is not good if user want to install with a

[CMake] Cmake stdint

2011-08-25 Thread
Hi, I wanted to ask, if there is a possibility to generate a stdint header file with CMake? With autotools I used the m4 macro ax_create_stdint_h.m4. Thanks in advance, Matthias ___ Powered by www.kitware.com Visit other Kitware open-source proje

[CMake] How to determine origin of variable

2011-08-25 Thread Martin Weber
Hi all, is there a way in CMake to detect, whether a variable has been set on the command-line (with the -D option) and not in a CMakelists.txt? For example, GNU-make has the origin function do do something similar. Thanks, Martin -- ☂ E-Mails sollten Text sein, Text und nur Text. Wenn Gott