[CMake] How can I add gprof profiler to my CMakeLists.txt?

2009-12-14 Thread Water Lin
I want to use gprof to analyze my code. So I try to embed the -pg paramter for g++ in my CMakeLists.txt file. But after I embeded the -pg to my CMakeLists.txt like this: - add_definitions(-pg -march=pentium4 -msse3 -g) - and I recompile my code. There is no gprof output file. But

[CMake] typo in http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_test:FAIL_REGULAR_EXPRESSION

2009-12-14 Thread Tyler Roscoe
# FAIL_REGULAR_EXPRESSION: If the output matches this regular # expression the test will fail. If set, if the output matches one of specified regular expressions, the test will fail.For example: PASS_REGULAR_EXPRESSION "[^a-z]Error;ERROR;Failed" The example should say FAIL_REGULAR_EXPRESSION

[CMake] search order of find_file when multiple names are given

2009-12-14 Thread James Zipperer
I have a find_file command with multiple names supplied, like the following: find_file(SOMEVAR NAMES name1 name2 name3) I'm wondering what happens if name1, name2, and name3 all exist in the same directory. Is it guaranteed that find_file will always return the full path to name1? Thanks! -J

[CMake] Resetting default target

2009-12-14 Thread Steven Wilson
Is it possible to reset the default target for the makefile build systems? For example, could I have 'make install' be the default target rather than 'make all'? Thanks, Steve ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Embedding up-to-date version info in built library

2009-12-14 Thread Waschk,Kolja
Hi Brad, You need the custom command to run every time the build starts: ... copy-if-different check. The key is then to make the library depend on this rule at a *target* level, but only on version.h at a *file* level. Because such a custom target is "always considered out of date", the li

Re: [CMake] cmake install overrode my PATH instead of appending to it

2009-12-14 Thread David Cole
FWIW: I made my user PATH value 302 characters long... as in: C:\a;C:\b;C:\c;C:\dd;C:\dd;C:\dd;C:\dd;C:\dd;C:\dd;C:\dd;C:\dd;C:\dd;C:\dd;C:\dd;C:\dd;C:\dd;C:\dd;C:\dd;C:\d

Re: [CMake] Embedding up-to-date version info in built library

2009-12-14 Thread Brad King
Waschk,Kolja wrote: > Hi Brad, > >> You need the custom command to run every time the build starts: > ... >> copy-if-different check. The key is then to make the library depend >> on this rule at a *target* level, but only on version.h at a *file* >> level. > > Because such a custom target is "a

Re: [CMake] CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT returns false when expected true

2009-12-14 Thread John Drescher
On Mon, Dec 14, 2009 at 12:26 PM, Tyler Roscoe wrote: > On Mon, Dec 14, 2009 at 12:21:13PM -0500, John Drescher wrote: >> On Mon, Dec 14, 2009 at 12:16 PM, Tyler Roscoe wrote: >> > On Mon, Dec 14, 2009 at 12:07:33PM -0500, John Drescher wrote: >> >> SET (DEFAULT_INSTALL_PATH ${PGM_FILES}/UPMC/${C

Re: [CMake] CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT returns false when expected true

2009-12-14 Thread Tyler Roscoe
On Mon, Dec 14, 2009 at 12:21:13PM -0500, John Drescher wrote: > On Mon, Dec 14, 2009 at 12:16 PM, Tyler Roscoe wrote: > > On Mon, Dec 14, 2009 at 12:07:33PM -0500, John Drescher wrote: > >> SET (DEFAULT_INSTALL_PATH ${PGM_FILES}/UPMC/${CMAKE_PROJECT_NAME} > >> CACHE STRING "Default Install Path")

[CMake] Cpack Component and NSIS shortcut

2009-12-14 Thread Benoit
Hy, I think there is a small bug in Cpack or maybe i didn't find the good features. I'm using cpack to pack my project (for windows)... and i wanted to use the same install for my server and client. Therefore I have check the CPACK_COMPONENT_xxx tutorial which is really intersting http://www.cmake

Re: [CMake] CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT returns false when expected true

2009-12-14 Thread John Drescher
On Mon, Dec 14, 2009 at 12:21 PM, John Drescher wrote: > On Mon, Dec 14, 2009 at 12:16 PM, Tyler Roscoe wrote: >> On Mon, Dec 14, 2009 at 12:07:33PM -0500, John Drescher wrote: >>> SET (DEFAULT_INSTALL_PATH ${PGM_FILES}/UPMC/${CMAKE_PROJECT_NAME} >>> CACHE STRING "Default Install Path") >>> >>> i

Re: [CMake] CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT returns false when expected true

2009-12-14 Thread John Drescher
On Mon, Dec 14, 2009 at 12:16 PM, Tyler Roscoe wrote: > On Mon, Dec 14, 2009 at 12:07:33PM -0500, John Drescher wrote: >> SET (DEFAULT_INSTALL_PATH ${PGM_FILES}/UPMC/${CMAKE_PROJECT_NAME} >> CACHE STRING "Default Install Path") >> >> if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) >>    set (CMAK

Re: [CMake] CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT returns false when expected true

2009-12-14 Thread Tyler Roscoe
On Mon, Dec 14, 2009 at 12:07:33PM -0500, John Drescher wrote: > SET (DEFAULT_INSTALL_PATH ${PGM_FILES}/UPMC/${CMAKE_PROJECT_NAME} > CACHE STRING "Default Install Path") > > if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) >set (CMAKE_INSTALL_PREFIX ${DEFAULT_INSTALL_PATH} CACHE STRING > "Inst

[CMake] CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT returns false when expected true

2009-12-14 Thread John Drescher
Under cmake-2.8.0 I have the following section in my CMakeLists.txt IF(CMAKE_SIZEOF_VOID_P MATCHES 4) string (REPLACE "\\" "/" PGM_FILES $ENV{PROGRAMFILES}) ELSE(CMAKE_SIZEOF_VOID_P MATCHES 4) # On WIN64 use the 64 bit program files.. string (REPLACE "\\" "/" PGM_FILES $ENV{ProgramW6432}) ENDIF(CM

Re: [CMake] cmake -E create_symlink for Windows

2009-12-14 Thread Samuel E. Henley
I think it comes down to what error to flag, “You can't use this command on your operation system because we didn't implement it” or “your operation system is obsolete – build a work-around” or “no message at all because it's windows and no one does development with windows”. The last is odd for a

Re: [CMake] How to generate xcodeproj file correctly for Xcode?

2009-12-14 Thread Brad King
DONG Li wrote: > I am trying move my project from Linux to Mac. I have modified some > cmake files to successfully generate Makefile, but I'd like generate > xcodeproj file for use in Xcode. A few errors appeared, as following: AFAIK the Xcode generator is totally untested with the Intel Fortran p

Re: [CMake] Embedding up-to-date version info in built library

2009-12-14 Thread Brad King
Kolja Waschk wrote: > Beside the SVN revision number of the working base, our embedded > revision information also tells whether the library was built from code > with local modifications, i.e. whether it equals the source code stored > in the SVN repository or was changed afterwards. Changing a s

Re: [CMake] Mac OSX GUI

2009-12-14 Thread Steven Wilson
Thanks Mike, That extra set of files fixed the problem! Steve On Sun, Dec 13, 2009 at 9:59 PM, Mike Jackson wrote: > Yep. When the install command is run there is a missing package of > files from the QtGui.framework/Resources/qt_menu which needs to be > copied into the CMake-Gui.app/Contents/

Re: [CMake] cmake -E create_symlink for Windows

2009-12-14 Thread Richard Bateman
That is correct; Cygwin applications and compilers (anything that uses the cygwin filesystem) would be able to use it, but no windows applications (such as Visual Studio) would be able to do so. NTFS has long supported hard-links (or Junction points: http://technet.microsoft.com/en-us/sysinter

Re: [CMake] cmake -E create_symlink for Windows CMake Digest, Vol 68, Issue 51

2009-12-14 Thread Samuel E. Henley
I think there should be a cross platform command for creating symbolic links, under windows 2000 and above with the ntfs formatted disk. You can create symbolic links to directories with a program called “junction” (Vista has a build-in command) - junction has switches that would simulate the Linux

Re: [CMake] cmake -E create_symlink for Windows

2009-12-14 Thread Andreas Pakulat
On 14.12.09 14:29:06, Marcel Loose wrote: > On Mon, 2009-12-14 at 08:23 -0500, Bill Lorensen wrote: > > http://en.wikipedia.org/wiki/Symbolic_link#Cygwin_symbolic_links > > > > OK, that puts us back at square one. > > Why is it that CMake cannot use Windows shortcuts as an alternative to > Unix

Re: [CMake] cmake -E create_symlink for Windows

2009-12-14 Thread Michael Wild
On 14. Dec, 2009, at 14:29 , Marcel Loose wrote: > On Mon, 2009-12-14 at 08:23 -0500, Bill Lorensen wrote: >> http://en.wikipedia.org/wiki/Symbolic_link#Cygwin_symbolic_links >> > > OK, that puts us back at square one. > > Why is it that CMake cannot use Windows shortcuts as an alternative to

Re: [CMake] cmake -E create_symlink for Windows

2009-12-14 Thread Marcel Loose
On Mon, 2009-12-14 at 08:23 -0500, Bill Lorensen wrote: > http://en.wikipedia.org/wiki/Symbolic_link#Cygwin_symbolic_links > OK, that puts us back at square one. Why is it that CMake cannot use Windows shortcuts as an alternative to Unix symbolic links, whereas Cygwin can? Best regards, Marcel

Re: [CMake] cmake -E create_symlink for Windows

2009-12-14 Thread Bill Lorensen
http://en.wikipedia.org/wiki/Symbolic_link#Cygwin_symbolic_links On Mon, Dec 14, 2009 at 3:28 AM, Marcel Loose wrote: > On Sat, 2009-12-12 at 12:02 -0500, Bill Hoffman wrote: >> Alan W. Irwin wrote: >> > On 2009-12-12 09:44-0500 David Cole wrote: >> > >> >> On Fri, Dec 11, 2009 at 10:04 AM, Micha

Re: [CMake] Building tests only for "make test"

2009-12-14 Thread Dr . Stefan Sablatnög
Hi Marcel, Thanks for the hint, the wiki states it should be CMAKE_TEST_COMMAND, I think this should be CMAKE_CTEST_COMMMAND? By the way is there a way to make ctest use this new check target instead of the default all in a continous testing configuration? (I tried ctest.exe --build-target check

[CMake] How to generate xcodeproj file correctly for Xcode?

2009-12-14 Thread DONG Li
Hi all, I am trying move my project from Linux to Mac. I have modified some cmake files to successfully generate Makefile, but I'd like generate xcodeproj file for use in Xcode. A few errors appeared, as following: 1. Fortran compiler In the command line output of running "cmake -G Xcode ../",

Re: [CMake] ADD_CUSTOM_COMMAND

2009-12-14 Thread Keyan
hi, i found the problem, just in case anyone is interested. the problem was, that i use "package first.second.third;" in my java-sources, so that the class files are compiled to ${CMAKE_CURRENT_BINARY_DIR}/first/second/third/file.class and not to ${CMAKE_CURRENT_BINARY_DIR}/file.class, which i

Re: [CMake] cmake -E create_symlink for Windows

2009-12-14 Thread Marcel Loose
On Sat, 2009-12-12 at 12:02 -0500, Bill Hoffman wrote: > Alan W. Irwin wrote: > > On 2009-12-12 09:44-0500 David Cole wrote: > > > >> On Fri, Dec 11, 2009 at 10:04 AM, Michael Wild wrote: > >> > >> Bummer. What where they THINKING??? (if at all...). It seems to me > >> that M$ just CAN'T get it r