Re: [CMake] custom target isn't rebuilt if depending on another custom target

2010-09-13 Thread Michael Hertling
On 09/13/2010 05:46 PM, Gerhard Stengel wrote: > Hi, > > I have a strange problem with custom targets and their dependencies. I do as > follows: > > 1) create a file 1 and add it to a custom target 1 > 2) create a file 2 and add it to a custom target 2 > 3) create a 3rd file by packing #1 and #2

Re: [CMake] Use of CMAKE_LIBRARY_OUTPUT_DIRECTORY

2010-09-13 Thread Ryan Pavlik
On 9/13/10 12:29 PM, David Aldrich wrote: Hi I have tried to set the output directory for my library as follows: # set destination directory for LIBRARY target (i.e. libKernel.a) set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ./_gnuRelease ) # build the Kernel static library add_library(Kernel STATIC ${

[CMake] Use of CMAKE_LIBRARY_OUTPUT_DIRECTORY

2010-09-13 Thread David Aldrich
Hi I have tried to set the output directory for my library as follows: # set destination directory for LIBRARY target (i.e. libKernel.a) set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ./_gnuRelease ) # build the Kernel static library add_library(Kernel STATIC ${SRCS}) however, the library is being create

Re: [CMake] Undefined reference to __Unwind_Resume when building a universal binary with make on Mac OS X

2010-09-13 Thread Ryan Pavlik
if(APPLE) set(CMAKE_OSX_DEPLOYMENT_TARGET 10.5) endif() Hope this helps! Ryan On 9/10/10 9:19 AM, Pedro d'Aquino wrote: The problem wasn't related to the universal binaries, but to the SDK used (10.5). I need to add "-mmacosx-version-min=10.5" to the compiler flags in order to make it wo

Re: [CMake] add_test : expand environment variable at running time

2010-09-13 Thread Tyler Roscoe
On Mon, Sep 13, 2010 at 06:01:52PM +0200, Olivier Pierard wrote: > - add_test( mpirun -machinefile $TMPDIR myexec ) => will never expand > TMPDIR - I don't understand why because in CTestTestfile.cmake, I have > add_test( test_name "mpirun" "-machinefile" "$TMPDIR" "myexec"); if I > submit this as

[CMake] add_test : expand environment variable at running time

2010-09-13 Thread Olivier Pierard
Dear all, I re-submit a previous question with no answer in a simpler way. A ctest_test() call on a cluster computation node executes a test constructed with add_test(..) on the cluster master node. add_test contains an evironment variable but is not expanded or expanded at configuration time bu

[CMake] custom target isn't rebuilt if depending on another custom target

2010-09-13 Thread Gerhard Stengel
Hi, I have a strange problem with custom targets and their dependencies. I do as follows: 1) create a file 1 and add it to a custom target 1 2) create a file 2 and add it to a custom target 2 3) create a 3rd file by packing #1 and #2 together 4) the 3rd file is added to a custom target which dep

Re: [CMake] FindBoost.cmake trouble with static libs (-gd vs -sgd issue)

2010-09-13 Thread Dixon, Shane
Philip, You closed the bug already so I can't comment there, but I wanted to let you know that this latest version of FindBoost.cmake did work as expected for me. Thank you so much for your help. -- Shane From: philiplow...@gmail.com [mailto:philipl

Re: [CMake] Question about add_custom_command

2010-09-13 Thread David Aldrich
Hi Michael I have found that I had an 'add_executable' call left in accidentally. Sorry for wasting your time. It works well now. Thanks again for your help. BR David ___ Powered by www.kitware.com Visit other Kitware open-source projects at http:

Re: [CMake] Question about add_custom_command

2010-09-13 Thread Michael Wild
On 13. Sep, 2010, at 14:57 , David Aldrich wrote: > Hi Michael > > >> You never link static libraries. They are more like zip files than actual >> libraries and just contain the compiled object files and for if you ran >> ranlib on it, also a "table-of-contents" to speed link up. >> >> If you

Re: [CMake] Question about add_custom_command

2010-09-13 Thread David Aldrich
Hi Michael > You never link static libraries. They are more like zip files than actual > libraries and just contain the compiled object files and for if you ran > ranlib on it, also a "table-of-contents" to speed link up. > > If you do "target_link_libraries" in CMake, where the target is a sta

[CMake] CMake Problem with Visual Studio 2008 Express and Windows 7

2010-09-13 Thread Conor Downey
Hi, I am using CMAKE for the first time and ive run into a problem. Basically i have set where the source is and where to build the binaries. Then i add an entry. But when i configure the program seems to have trouble finding my compiler. I have Visual Studio 2008 Express Edition installed on a Wi

Re: [CMake] Question about add_custom_command

2010-09-13 Thread Michael Wild
On 13. Sep, 2010, at 13:03 , David Aldrich wrote: > Hi Michael > >> set(SRCS a.c b.c d.c e.c) >> >> add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/f.c >> COMMAND ... >> DEPENDS ${SRCS} >> COMMENT "Generating f.c" >> VERBATIM) >> list(APPEND SRCS ${CMAKE_BINARY_DIR}/f.c) >> >> add_executable

Re: [CMake] Question about add_custom_command

2010-09-13 Thread David Aldrich
Hi Michael > set(SRCS a.c b.c d.c e.c) > > add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/f.c > COMMAND ... > DEPENDS ${SRCS} > COMMENT "Generating f.c" > VERBATIM) > list(APPEND SRCS ${CMAKE_BINARY_DIR}/f.c) > > add_executable(main ${SRCS}) Thanks - that worked nicely. Now I have anoth