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 them...@gmail.com wrote: Bummer. What where they THINKING??? (if at all...). It seems to me that M$ just CAN'T get it

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 is

[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] 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

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 lo...@astron.nl 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,

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 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 Unix

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 symbolic

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

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

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

[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})

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 Install path

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 ty...@cryptio.net 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

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 dresche...@gmail.com wrote: On Mon, Dec 14, 2009 at 12:16 PM, Tyler Roscoe ty...@cryptio.net 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

[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

[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.