Re: [CMake] Continue install after a failure

2012-10-22 Thread Petr Kmoch
On Mon, Oct 22, 2012 at 4:58 PM, David Cole wrote: > On Mon, Oct 22, 2012 at 3:22 AM, Petr Kmoch wrote: > > Hi Andreas, > > > > thanks for your tip. Unfortunately, 'make -k install' doesn't help, as > the > > entire install step is a single command (cmake -P ...), so once this > fails, > > there

Re: [CMake] CMake-based build systems that are useful for study purposes?

2012-10-22 Thread Alan W. Irwin
On 2012-10-22 20:25- Eric Clark wrote: I would love your opinion on what I have done here. Since this being developed for developers, it is always nice to get the developer's (our end-user's) perspective. Do you think I am missing the purpose of the project() command all together? I am out

Re: [CMake] CMake-based build systems that are useful for study purposes?

2012-10-22 Thread Eric Clark
Alan, Thank you for such a detailed response. I am pretty new to this mailing list and have only responded to a few questions on here, but I have really thought the responsiveness on here is the best of any of the message boards that I belong to and I really appreciate it, so I like to give bac

[CMake] bootstrap of cmake 2.8.9 fails on HP-UX PA-RISC

2012-10-22 Thread Amul Shah
I've hit a snag on an HPPA machine using the HP compiler aCC. This host is HPUX 11.11 on 9000/800. I don't know enough about C++ to make heads or tails of the error message below and searches turn up nothing useful. thanks, Amul - CMake 2.8.9, Copyright

Re: [CMake] CPack: Project and independent subproject

2012-10-22 Thread Eric Noulard
2012/10/22 Romain LEGUAY : > Hello everyone, > > My c++ project contains a Library folder, an Applications folder and a Demos > folder like this: > > Project/ > |-> Library/ > |-> include/ > |-> src/ > |-> Applications/ >

[CMake] CMake-based build systems that are useful for study purposes?

2012-10-22 Thread Alan W. Irwin
On 2012-10-22 17:55- Eric Clark wrote: Awesome! Thank you for the answers and the quick reply! I have only been using CMake for a little over a year and again I am sorry for posting an incorrect answer. I always thought that I had to have one project() call for each add_executable and/or ad

Re: [CMake] cmake trouble

2012-10-22 Thread Eric Clark
> -Original Message- > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On > Behalf Of Rolf Eike Beer > Sent: Monday, October 22, 2012 12:51 PM > To: cmake@cmake.org > Subject: Re: [CMake] cmake trouble > > Eric Clark wrote: > > > -Original Message- > > > From: cmake-

Re: [CMake] cmake trouble

2012-10-22 Thread Rolf Eike Beer
Eric Clark wrote: > > -Original Message- > > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On > > Behalf Of Rolf Eike Beer > > Sent: Monday, October 22, 2012 12:48 PM > > To: cmake@cmake.org > > Subject: Re: [CMake] cmake trouble > > > > Eric Clark wrote: > > > > From: And

Re: [CMake] cmake trouble

2012-10-22 Thread Eric Clark
> -Original Message- > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On > Behalf Of Rolf Eike Beer > Sent: Monday, October 22, 2012 12:48 PM > To: cmake@cmake.org > Subject: Re: [CMake] cmake trouble > > Eric Clark wrote: > > > From: Andreas Pakulat [mailto:ap...@gmx.de] O

Re: [CMake] cmake trouble

2012-10-22 Thread Rolf Eike Beer
Eric Clark wrote: > > Eric Clark wrote: > > > Hello, > > > > > > First off, you cannot call both add_executable and add_library in the > > > > > same CMakeLists file. Here is what I can say about your other questions: > > Of course you can. > > Yes, but only if you call project() twice, correct?

Re: [CMake] cmake trouble

2012-10-22 Thread Rolf Eike Beer
Eric Clark wrote: > > From: Andreas Pakulat [mailto:ap...@gmx.de] > > On Mon, Oct 22, 2012 at 6:04 PM, Eric Clark wrote: > > > First off, you cannot call both add_executable and add_library in the > > > same CMakeLists file. > > > > I think there's something missing here, but its perfectly possi

Re: [CMake] cmake trouble

2012-10-22 Thread Eric Clark
> -Original Message- > From: Andreas Pakulat [mailto:ap...@gmx.de] > Sent: Monday, October 22, 2012 12:17 PM > To: Eric Clark > Cc: 张峰; cmake@cmake.org > Subject: Re: [CMake] cmake trouble > > Hi, > > On Mon, Oct 22, 2012 at 6:04 PM, Eric Clark wrote: > > > > First off, you cannot call b

Re: [CMake] cmake trouble

2012-10-22 Thread Eric Clark
Andreas, I just replied to a message from another gentleman on here and I may be way off base. But, I tried to do this once and it did not work. The only way that I could get it to work was to add another project() call between the two... I could have had some other issues because it has been q

Re: [CMake] cmake trouble

2012-10-22 Thread Eric Clark
> -Original Message- > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On > Behalf Of Rolf Eike Beer > Sent: Monday, October 22, 2012 12:11 PM > To: cmake@cmake.org > Subject: Re: [CMake] cmake trouble > > Eric Clark wrote: > > Hello, > > > > First off, you cannot call both

Re: [CMake] cmake trouble

2012-10-22 Thread Rolf Eike Beer
Eric Clark wrote: > Hello, > > First off, you cannot call both add_executable and add_library in the same > CMakeLists file. Here is what I can say about your other questions: Of course you can. > 1. All commands that require a target have to come after you have > created the target via ad

Re: [CMake] cmake trouble

2012-10-22 Thread Andreas Pakulat
Hi, On Mon, Oct 22, 2012 at 6:04 PM, Eric Clark wrote: > > First off, you cannot call both add_executable and add_library in the same > CMakeLists file. I think there's something missing here, but its perfectly possible to have one or more library and executable targets specified in the same cma

Re: [CMake] using find_library with a ExternalProject

2012-10-22 Thread Bill Hoffman
On 10/22/2012 12:34 PM, Ian Monroe wrote: So what was the target use-case for ExternalProject? From the name it sounds like it was meant exactly for making your non-external project (aka your project) be able to pull in dependencies from external projects. The target use case was to create a simp

[CMake] ctest - run commands before and after tests run

2012-10-22 Thread Crni Gorac
At "CMake/Testing With CTest" Wiki page (http://www.cmake.org/Wiki/CMake_Testing_With_CTest), it is mentioned that: CTest has several additional features that include: ... Customization of the testing by providing: ... Ability to run commands before and after tests are run I need to do

Re: [CMake] using find_library with a ExternalProject

2012-10-22 Thread Ian Monroe
On Mon, Oct 22, 2012 at 6:07 AM, Bill Hoffman wrote: > On 10/21/2012 10:20 PM, Ian Monroe wrote: >> >> So I had code like: >> include(ExternalProject) >> ExternalProject_Add( >> mockcpp >> DOWNLOAD_COMMAND hg clonessh://h...@bitbucket.org/godsme/mockcpp >> >> CMAKE_ARGS -DCMAKE_INSTALL

Re: [CMake] cmake trouble

2012-10-22 Thread Eric Clark
Hello, First off, you cannot call both add_executable and add_library in the same CMakeLists file. Here is what I can say about your other questions: 1. All commands that require a target have to come after you have created the target via add_executable or add_library. This is simply bec

[CMake] cmake trouble

2012-10-22 Thread 张峰
Hello: I am using cmake for three months now. but was trouble in a situation 。for details bellow: (in Windows) ADD_LIBRARY(test SHARED ${LIBTEST_SRC} ${LIBHELLO_SRC}) #ADD_LIBRARY(test STATIC ${LIBTEST_SRC} ${LIBHELLO_SRC}) #add executable AUX_SOURCE_DIRECTORY(. FAN_SRC) TARGET_LINK_LIBRA

[CMake] CPack: Project and independent subproject

2012-10-22 Thread Romain LEGUAY
Hello everyone, My c++ project contains a Library folder, an Applications folder and a Demos folder like this: Project/ |-> Library/ |-> include/ |-> src/ |-> Applications/ |-> appliA/

Re: [CMake] cmake trouble

2012-10-22 Thread Klaim - Joël Lamotte
Hi, On Mon, Oct 22, 2012 at 5:35 PM, 张峰 wrote: > > 1.if i put "TARGET_LINK_LIBRARIES(fan test)" before ADD_EXECUTABLE > command,this does not work ,why?? > Because until yout call add_executable(), the target name doesn't exist. You have to use the target name as first parameter of target_link_

[CMake] cmake trouble

2012-10-22 Thread 张峰
Hello: I am using cmake for three months now. but was trouble in a situation 。for details bellow: (in Windows,using Microsoft Visual Studio 2008) ADD_LIBRARY(test SHARED ${LIBTEST_SRC} ${LIBHELLO_SRC}) #ADD_LIBRARY(test STATIC ${LIBTEST_SRC} ${LIBHELLO_SRC}) #add executable AUX_SOURCE_DI

Re: [CMake] CMake 2.8.8 Upgrade problem with Xcode on OS X 10.8

2012-10-22 Thread David Cole
On Mon, Oct 22, 2012 at 11:26 AM, Sean McBride wrote: > Just following up after a little while... > > > On Sat, 8 Sep 2012 10:48:11 -0400, David Cole said: > >>Does this happen regardless of which Xcode you select, or only with >>the -DP4 one? > > Happens with any of them. > >>Does this still happ

Re: [CMake] CMake 2.8.8 Upgrade problem with Xcode on OS X 10.8

2012-10-22 Thread Sean McBride
Just following up after a little while... On Sat, 8 Sep 2012 10:48:11 -0400, David Cole said: >Does this happen regardless of which Xcode you select, or only with >the -DP4 one? Happens with any of them. >Does this still happen for you if you use CMake from the 'next' branch? Seems fixed in 2

Re: [CMake] Continue install after a failure

2012-10-22 Thread David Cole
On Mon, Oct 22, 2012 at 3:22 AM, Petr Kmoch wrote: > Hi Andreas, > > thanks for your tip. Unfortunately, 'make -k install' doesn't help, as the > entire install step is a single command (cmake -P ...), so once this fails, > there is no other command make could continue with. Is there no way to do

Re: [CMake] INCLUDE_DIRECTORIES (command vs target property)

2012-10-22 Thread David Cole
If you want to APPEND, then use set_property with APPEND. http://cmake.org/cmake/help/v2.8.9/cmake.html#command:set_property HTH, David On Mon, Oct 22, 2012 at 9:05 AM, Micha Renner wrote: > Hello, > > The target property INCLUDE_DIRECTORIES overwrites the > include_directories command valu

Re: [CMake] using find_library with a ExternalProject

2012-10-22 Thread Bill Hoffman
On 10/21/2012 10:20 PM, Ian Monroe wrote: So I had code like: include(ExternalProject) ExternalProject_Add( mockcpp DOWNLOAD_COMMAND hg clonessh://h...@bitbucket.org/godsme/mockcpp CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${MOCKCPP_PREFIX} UPDATE_COMMAND hg pull ) find_library(MOCKCPP

[CMake] INCLUDE_DIRECTORIES (command vs target property)

2012-10-22 Thread Micha Renner
Hello, The target property INCLUDE_DIRECTORIES overwrites the include_directories command values. A better way would have been that the values of the include_directories command would appended to the values of the target property INCLUDE_DIRECTORIES. I think that would make more sense. INCLUDE_D

Re: [CMake] Running library tests under MSVC2010

2012-10-22 Thread Martin Sustrik
Hi Nils, It isn't as bad as I might have made it sound. e.g.: add_executable(mytest test.cpp) set_target_properties(mytest PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) add_test(mytest ${CMAKE_BINARY_DIR}/mytest) Yes. Everything works OK now. My question was more of a theoretical

Re: [CMake] CMake rebuilds every time

2012-10-22 Thread David Cole
On Mon, Oct 22, 2012 at 6:38 AM, Arindam Mukherjee wrote: > On Mon, Oct 22, 2012 at 4:06 PM, Arindam Mukherjee > wrote: >> I am sorry I missed your response. Here are the details: >> >> 1. I have a shell / batch script which does two things: >> a. cd build_dir && cmake $SRC_PATH >> b. mak

Re: [CMake] help with cmake_parse_arguments

2012-10-22 Thread Biddiscombe, John A.
Eric Do you happen to know what docs you were looking at? It may be worth a little bit to post that to this mailing list so that hopefully the person that wrote those docs could be so kind as to update them with the correct syntax. I can't find the ones I was looking at before. But hopefully n

Re: [CMake] CMake rebuilds every time

2012-10-22 Thread Arindam Mukherjee
On Mon, Oct 22, 2012 at 4:06 PM, Arindam Mukherjee wrote: > I am sorry I missed your response. Here are the details: > > 1. I have a shell / batch script which does two things: > a. cd build_dir && cmake $SRC_PATH > b. make # On Unix > > On Windows, for step b., we run > devenv p

Re: [CMake] CMake rebuilds every time

2012-10-22 Thread Arindam Mukherjee
I am sorry I missed your response. Here are the details: 1. I have a shell / batch script which does two things: a. cd build_dir && cmake $SRC_PATH b. make # On Unix On Windows, for step b., we run devenv proj.sln /Build "Release|x86" /out Here is the top level CMakeLists.txt:

Re: [CMake] Continue install after a failure

2012-10-22 Thread Petr Kmoch
Hi Andreas, thanks for your tip. Unfortunately, 'make -k install' doesn't help, as the entire install step is a single command (cmake -P ...), so once this fails, there is no other command make could continue with. Is there no way to do this natively in cmake? I could (in theory) add OPTIONAL to