[CMake] INTERNAL vs. STATIC cache variables

2009-09-25 Thread Marcel Loose
Hi all, Is there a difference in precedence between INTERNAL and STATIC cache variables? For example, what happens if I (accidentally) define an INTERNAL cache variable that is already or will be defined by CMake? Will the STATIC variable always have precedence? Or am I entering the realm of

[CMake] Link against dynamic library

2009-09-25 Thread Eugen-Andrei Gavriloaie
Hello, Is there any way to tell cmake to use relative paths when linking an executable? Here some info about a sample exec: $ otool -L ./rtmpserver/rtmpserver ./rtmpserver/rtmpserver: /Users/shiretu/work/crtmpserver/trunk/builders/cmake/thelib/ libthelib.dylib (compatibility version 0.0.0,

Re: [CMake] Link against dynamic library

2009-09-25 Thread Michael Jackson
With CMake you can do something like: add_library(foo ) add_executable( bar .. ) target_link_libraries (bar foo) and CMake will make sure all the link paths are correct. There generally should not be a need to set the install_name of built libraries _within_ a build tree. Now,

Re: [CMake] Resolution of dependencies for Subversion

2009-09-25 Thread SF Markus Elfring
Again, to me it looks like FindSubversion is for *using* Subversion, not for building it. As such, setting up include paths and link libraries is not appropriate in that module. Does a naming convention exist for configuration scripts? How should names be distinguished between scripts which

[CMake] file1 newer than file2 test

2009-09-25 Thread James Bigler
Is there a way to test if one file is newer than another file? Something along the lines if cmake -E compare_files, but for time stamps? I need to copy dlls into the binary directory, but I want to do it conservatively. Also I need different versions for Debug and Release, so add_custom_command

Re: [CMake] file1 newer than file2 test

2009-09-25 Thread David Cole
See also the IS_NEWER_THAN clause of the IF command. http://www.cmake.org/cmake/help/cmake2.6docs.html#command:if On Fri, Sep 25, 2009 at 1:47 PM, James Bigler jamesbig...@gmail.com wrote: Is there a way to test if one file is newer than another file? Something along the lines if cmake -E

[CMake] Testing for SSE and adding appropriate Compile options

2009-09-25 Thread Michael Jackson
I am testing for SSE2/SSE3 functionality and am having some issues getting things correct. After I properly detect that SSE2/3 is available I need to set the COmpiler Flags. For GCC it seems I should use -msse2 or -msse3 flags. For MSVC it seems I should use /arch:SSE2. So I am trying to

[CMake] 'cmake -E copy_directory' fails

2009-09-25 Thread Kelly (KT) Thompson
Hi, I am having intermittent trouble executing $ cmake -E copy_directory /full/path/to/large/directory /new/path Originally, the copy_directory was failing deep in my build system (add_custom_command), but the failure is repeatable from the command line (exactly as shown above). The failure

Re: [CMake] file1 newer than file2 test

2009-09-25 Thread James Bigler
Sweet. Thanks! Missed that one after all these years. James On Fri, Sep 25, 2009 at 11:53 AM, David Cole david.c...@kitware.com wrote: See also the IS_NEWER_THAN clause of the IF command. http://www.cmake.org/cmake/help/cmake2.6docs.html#command:if On Fri, Sep 25, 2009 at 1:47 PM, James

Re: [CMake] INTERNAL vs. STATIC cache variables

2009-09-25 Thread Alexander Neundorf
On Friday 25 September 2009, Marcel Loose wrote: Hi all, Is there a difference in precedence between INTERNAL and STATIC cache variables? For example, what happens if I (accidentally) define an INTERNAL cache variable that is already or will be defined by CMake? Will the STATIC variable

[CMake] CMake 2.8.0 RC 1 ready for testing!

2009-09-25 Thread Bill Hoffman
I am happy to announce that CMake 2.8.0 has entered the beta stage! You can find the source and binaries here: http://www.cmake.org/files/v2.8/. I am sure I am leaving something out, but here is the list of changes that I came up with. (If you notice something missing please let me know and I

Re: [CMake] Testing for SSE and adding appropriate Compile options

2009-09-25 Thread Tyler Roscoe
On Fri, Sep 25, 2009 at 01:57:26PM -0400, Michael Jackson wrote: set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -msse3) set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -msse3) for NON MSVC compilers and set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} /arch:SSE2) set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} /arch:SSE2) for

[CMake] cpack: add icon to start menu

2009-09-25 Thread Dixon, Shane
I'm using the NSIS generator to create a package. Is there a CPACK variable that can be set to add a particular executable to the start menu? I noticed that the start menu is populated with uninstall only. -- Shane ___ Powered by

Re: [CMake] cpack: add icon to start menu

2009-09-25 Thread John Drescher
On Fri, Sep 25, 2009 at 4:36 PM, Dixon, Shane shane.di...@atmel.com wrote: I’m using the NSIS generator to create a package.  Is there a CPACK variable that can be set to add a particular executable to the start menu?  I noticed that the start menu is populated with “uninstall” only. This

Re: [CMake] Testing for SSE and adding appropriate Compile options

2009-09-25 Thread Bill Hoffman
Michael Jackson wrote: Does it work if you just drop the quotes from the second half of the set()? set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} /arch:SSE2) or, slightly more pedantically: set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} /arch:SSE2) Nope, this variable is a string and not a list. It has to be

Re: [CMake] Testing for SSE and adding appropriate Compile options

2009-09-25 Thread Michael Jackson
I tried that also and it didn't work either. I am not at my windows box at the moment to get the exact error. I now have if (AIMBLADE_USE_SSE) set_source_files_properties(${SymmetryFilter_SOURCE_DIR}/ FFThread.cpp ${SymmetryFilter_SOURCE_DIR}/

Re: [CMake] CMake 2.8.0 RC 1 ready for testing!

2009-09-25 Thread Pau Garcia i Quiles
Hello, Wow, this is really a surprise. I was not expecting CMake 2.8.0 until at least mid-2010! What's the expected release date for 2.8.0 final ? On Fri, Sep 25, 2009 at 10:07 PM, Bill Hoffman bill.hoff...@kitware.com wrote: I am happy to announce that CMake 2.8.0 has entered the beta stage!

[CMake] CMake 2.8.0 RC 1 ready for testing!

2009-09-25 Thread Eric Noulard
I was too fast I forgot the list 2009/9/25 Bill Hoffman bill.hoff...@kitware.com: I am happy to announce that CMake 2.8.0 has entered the beta stage! You can find the source and binaries here: http://www.cmake.org/files/v2.8/. Just built and tested on somes projects. Awesome, works like a

Re: [CMake] CMake 2.8.0 RC 1 ready for testing!

2009-09-25 Thread Clinton Stimpson
Where can I find more info on - Fortran/C mixed language projects made much easier. CMake now automatically can compute the run time libraries for a compiler. Does that mean there is a variable I can use instead of manually specifying libgfortran, libg2c and others depending on the

Re: [CMake] 'cmake -E copy_directory' fails

2009-09-25 Thread Kelly (KT) Thompson
On Fri, Sep 25, 2009 at 12:06 PM, Eric Noulard eric.noul...@gmail.comwrote: 2009/9/25 Kelly (KT) Thompson k...@transpireinc.com: Hi, I am having intermittent trouble executing $ cmake -E copy_directory /full/path/to/large/directory /new/path Originally, the copy_directory was

Re: [CMake] CMake 2.8.0 RC 1 ready for testing!

2009-09-25 Thread Bill Hoffman
On Fri, Sep 25, 2009 at 5:31 PM, Pau Garcia i Quiles pgqui...@elpauer.org wrote: Hello, Wow, this is really a surprise. I was not expecting CMake 2.8.0 until at least mid-2010! What's the expected release date for 2.8.0 final ? As soon as the major issues with 2.8.0 rc's are worked out.