[CMake] help using try_run with custom build type

2009-06-29 Thread George Neill
Hi folks, I apologize for the long email, but, I am having some troubles with try_run (cmake 2.6.4/sun gcc/Solaris 10). I have created my own CMAKE_BUILD_TYPE called TEST and have set CMAKE_C_FLAGS_TEST to "-m64 -std=c99". Here's the .c code I am testing with, -bash-3.00$ cat !$ cat ../platform

Re: [CMake] CPACK_SOURCE_IGNORE_FILES

2009-06-29 Thread Tyler Roscoe
On Mon, Jun 29, 2009 at 08:18:35PM -0500, Knox, Kent wrote: > set( CPACK_SOURCE_IGNORE_FILES > "/Build/;/.hg/;/.svn/;/.ncb$/" ) Have you tried escaping the $ ? Have you tried just leaving the $ out, or do you really need to exclude foo.ncb while including bar.ncbsomethingelse? tyler

Re: [CMake] CPACK_SOURCE_IGNORE_FILES

2009-06-29 Thread John Drescher
On Mon, Jun 29, 2009 at 9:18 PM, Knox, Kent wrote: > I'm integrating CPack into my build system, and can't quite get > CPACK_SOURCE_IGNORE_FILES to work right. > > I want to cull individual files from the source package, like .ncb files > and .pdb files and such.  It seems as though CPACK_SOURCE_IG

[CMake] CPACK_SOURCE_IGNORE_FILES

2009-06-29 Thread Knox, Kent
I'm integrating CPack into my build system, and can't quite get CPACK_SOURCE_IGNORE_FILES to work right. I want to cull individual files from the source package, like .ncb files and .pdb files and such. It seems as though CPACK_SOURCE_IGNORE_FILES honors the directories that I want to exclude, bu

[CMake] CMAKE_CFG_INTDIR and add_custom_command with object output

2009-06-29 Thread James Bigler
I'm having a problem with Visual Studio 2005. When I create a custom command that creates an object file, if I don't add that object file to the source lists, then VS crashes when I close the solution. If I do add the object files, then VS starts to forget my object files on the link line (restar

Re: [CMake] enable_language(.... OPTIONAL) signature does not work correctly

2009-06-29 Thread Alan W. Irwin
On 2009-06-29 22:48+0200 Alexander Neundorf wrote: On Monday 29 June 2009, Alan W. Irwin wrote: I have been testing the OPTIONAL signature for enable_language using the following simple CMakeLists.txt file: *** cmake_minimum_required(VERSION 2.6.4) project(test NONE) enable_language(C OPTI

[CMake] Re-defining CMAKE_CXX_FLAGS with /TP for cl.exe

2009-06-29 Thread Knox, Kent
I've just stumbled across some surprising cl.exe behavior, and I would like to see if the collective minds of this dist list has come across this before. In my c++ project, I override CMAKE_CXX_FLAGS with my own flags, including /TP. Using an nmake based build, this causes the linking step to b

Re: [CMake] enable_language(.... OPTIONAL) signature does not work correctly

2009-06-29 Thread Alexander Neundorf
On Monday 29 June 2009, Alan W. Irwin wrote: > I have been testing the OPTIONAL signature for enable_language using the > following simple CMakeLists.txt file: > > *** > cmake_minimum_required(VERSION 2.6.4) > project(test NONE) > enable_language(C OPTIONAL) > message(STATUS "CMAKE_C_COMPILER_W

[CMake] enable_language(.... OPTIONAL) signature does not work correctly

2009-06-29 Thread Alan W. Irwin
I have been testing the OPTIONAL signature for enable_language using the following simple CMakeLists.txt file: *** cmake_minimum_required(VERSION 2.6.4) project(test NONE) enable_language(C OPTIONAL) message(STATUS "CMAKE_C_COMPILER_WORKS = ${CMAKE_C_COMPILER_WORKS}") *** According to th

Re: [CMake] Problem with generated source and header files

2009-06-29 Thread Tyler Roscoe
On Mon, Jun 29, 2009 at 08:24:12PM +0200, Jörg Förstner wrote: > The sequence of the build process shall be: > 1. Go to build directory and execute "cmake " > 2. Execute "make" > 3. The generator shall be called (but only if the source and header files are > not yet generated). > 4. The generator

[CMake] Visual Studio 2005 forgets to add externally generated objects to link line

2009-06-29 Thread James Bigler
I have a project that generates object files as part of the compilation. I add the object names to the project with ${CMAKE_CFG_INTDIR} in the file name and they show up in the solution explorer (which is what I would expect). VS seems to do the right thing most of the time, but occasionally it w

[CMake] Problem with generated source and header files

2009-06-29 Thread Jörg Förstner
Hello everybody, I have a problem with generated source and header files. The main problem is, that I don't want to note each generated file's name manually in a CMakeLists.txt file, because the output of the file generator changes frequently. The sequence of the build process shall be: 1. Go t

[CMake] CPACK: packing shared library dependencies

2009-06-29 Thread Renato Elias
Is there any automatic way to wrap shared libraries when using CPack or do I need to insert such dependencies manually? I'm asking it because, according to the ldd command, different compilation flags give me different shared library dependencies and it would be hard to cover all possibilities. An

Re: [CMake] [CPACK:rpm] Add library?

2009-06-29 Thread Eric Noulard
2009/6/29 : > Hello everybody, > >    I'm using cmake 2.6.4. >    I want to add externals libraries to aa rpm build with cmake/cpack. May be you can INSTALL(FILES ...) those externals? And/or file a feature request for CPackRPM explaining how you want it to work and may be how it is currently wor

Re: [CMake] cmake 2.6.4 / Free VC Toolkit 2003 / XPSP2 PSDK

2009-06-29 Thread rnelias
Forgive me. I have not read your message with attention. I thought you had a Fortran program. CMake should not be looking for Fortran weird... does your code have any dependency with Fortran libraries? Just a tip: you can track down the error reported by CMake by putting message(something to

Re: [CMake] cmake 2.6.4 / Free VC Toolkit 2003 / XPSP2 PSDK

2009-06-29 Thread Bill Hoffman
Mathieu Malaterre wrote: My project is: project(foo C CXX) I do not see why it should load any fortran thingy at any point in time... And yes I configured using -G "NMake Makefiles" thx Can you run with cmake -G"NMake Makefiles" --trace? Then maybe we can figure out why it is trying to use f

Re: [CMake] cmake -E move/rename?

2009-06-29 Thread Brad King
Marcel Loose wrote: Ah, must not have been the only one wondering ;-) Do you, by any change, know if renames can also be done across directories -- i.e. rename -- or does it only support file-to-file and dir-to-dir rename? It is just a wrapper around the posix 'rename' function. The source

[CMake] [CPACK:rpm] Add library?

2009-06-29 Thread romain . jacquet . dev
Hello everybody, I'm using cmake 2.6.4. I want to add externals libraries to aa rpm build with cmake/cpack. I have several questions: - Is there any library equivalent for CPACK_PACKAGE_EXECUTABLES? I expect that CPACK_PACKAGE_LIBRARY work, but it does not. - CPACK_INSTALL_DIR

Re: [CMake] cmake 2.6.4 / Free VC Toolkit 2003 / XPSP2 PSDK

2009-06-29 Thread Mathieu Malaterre
My project is: project(foo C CXX) I do not see why it should load any fortran thingy at any point in time... And yes I configured using -G "NMake Makefiles" thx On Mon, Jun 29, 2009 at 3:28 PM, Renato Elias wrote: > > My guess is that Intel Fortran compiler does not support integration with > fr

Re: [CMake] Mercurial support for CTest

2009-06-29 Thread Brad King
Bart Janssens wrote: Hi all, We're planning to move our project (K-3D) from SVN to Mercurial. Are there any plans to support Mercurial in CTest? A search turned up these results: http://www.mail-archive.com/cmake@cmake.org/msg17597.html http://public.kitware.com/Bug/view.php?id=7879 Thanks for

[CMake] cmake 2.6.4 / Free VC Toolkit 2003 / XPSP2 PSDK

2009-06-29 Thread Mathieu Malaterre
Hi there, I -- Mathieu ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Foll

[CMake] cmake 2.6.4 / Free VC Toolkit 2003 / XPSP2 PSDK

2009-06-29 Thread Mathieu Malaterre
Hi there, I am trying to compile a c/c++ project using the free VC toolkit 2003 and I am getting an error about the fortran compiler being not found: -- Detecting C compiler ABI info - done -- Using FREE VC TOOLS, NO DEBUG available CMake Error at C:/Program Files/CMake 2.6/share/cmake-2.6/Modu