[CMake] CMake pod cast

2011-05-26 Thread Bill Hoffman
Last week I did an interview for the High Performance Computing (HPC) and Research Computing Podcast. It can be found here: http://www.rce-cast.com/ -Bill ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware

Re: [CMake] Copying files (different name)

2011-05-26 Thread Tyler
Don't know if file() will work but configure_file() will. You might want the NO_REPLACE flag or whatever it's called to prevent accidental variable interpolation. tyler On Thu, May 26, 2011 at 4:46 PM, Nicholas Yue wrote: > Hi, > >    With the FILE ( COPY .. DESTINATION) command, is there a way

[CMake] Copying files (different name)

2011-05-26 Thread Nicholas Yue
Hi, With the FILE ( COPY .. DESTINATION) command, is there a way to create a second copy of a file at the DESTINATION with a different name ? In my case, my DESTINATION is the same as the original location. Basically, I am trying to duplicate this command line copy header.h.vc he

Re: [CMake] INSTALL with RENAME

2011-05-26 Thread J Decker
It's a windows XP target, so symlinks aren't doable... On Thu, May 26, 2011 at 12:12 PM, Alexander Neundorf wrote: > On Thursday 26 May 2011, J Decker wrote: >> How do I install a single target as multiple names? (for something like >> busybox) > > Did you try install(CODE ... ) or install(SCRIPT

Re: [CMake] INSTALL with RENAME

2011-05-26 Thread Alexander Neundorf
On Thursday 26 May 2011, J Decker wrote: > How do I install a single target as multiple names? (for something like > busybox) Did you try install(CODE ... ) or install(SCRIPT ... ) to create symlinks at install time ? Alex ___ Powered by www.kitware.co

[CMake] INSTALL with RENAME

2011-05-26 Thread J Decker
How do I install a single target as multiple names? (for something like busybox) -- CMakeLists.txt --- cmake_minimum_required(VERSION 2.8) PROJECT( test ) add_executable( ${PROJECT_NAME} test.c ) install( TARGETS ${PROJECT_NAME} RUNTIME DESTINATION . RENAME util_rm.exe ) install( T

Re: [CMake] 32-bit mode on 64-bit machine

2011-05-26 Thread Glenn Coombs
I do exactly that for my project using these lines: if(UNIX) # only build 32-bit binaries add_definitions(-m32) set(CMAKE_EXE_LINKER_FLAGS"${CMAKE_EXE_LINKER_FLAGS} -m32") set(CMAKE_SHARED_LIBRARY_C_FLAGS"${CMAKE_SHARED_LIBRARY_C_FLAG

[CMake] 32-bit mode on 64-bit machine

2011-05-26 Thread Sara Rolfe
Hello, I'd like to force a 64-bit machine to build a 32-bit program. Can I control this using CMake? Thanks, Sara ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

Re: [CMake] Cannot find source file: *.rc

2011-05-26 Thread Aaron_Wright
> From: Michael Wild > To: cmake@cmake.org > Date: 05/25/2011 10:08 PM > Subject: Re: [CMake] Cannot find source file: *.rc > Sent by: cmake-boun...@cmake.org > > On 05/25/2011 11:40 PM, aaron_wri...@selinc.com wrote: > > I use mc.exe to generate an *.rc file and some headers for my program. > >

[CMake] Purify Arguments

2011-05-26 Thread Jason Gochanour
Hello all, Is it possible to send command line arguments to purify when you run a "ctest_memcheck"? I need to find a way to exclude a few DLLs from our nightly memory check testing. Regards, -Jason Gochanour ___ Powered by www.kitware.com Visit ot

[CMake] Using ctest with --ctest-config

2011-05-26 Thread Olivier Clatz
Hello, I'm trying to use ctest with multiple CTestConfig.cmake files. When I have a single CTestConfig.cmake in my code root directory, and run : ctest -D Experimental Ctest runs and submit results correctly. Now when I move this file, let's say into C:\dir\myCTestConfig.cmake , and

Re: [CMake] Error on uninitialized vars?

2011-05-26 Thread Johan Björk
Hi, Basically we "need" to compile a few files with specific flags (only in release builds, and we had no test that checked for this) and I had a typo in the flag variable, resulting no extra flags being set. SET_SOURCE_FILES_PROPERTIES(some.cpp files.cpp PROPERTIES COMPILE_FLAGS "${SPECIAL_Flaaa