[CMake] howto re-run file(COPY signature ?

2010-11-23 Thread Dominique Belhachemi
Hello, I am using the following command in my CMakeLists.txt file to copy a directory with all sub-directories from the source tree to a directory in the binary tree. file(COPY ${SRCDIR} DESTINATION ${CMAKE_BINARY_DIR}/${DSTDIR}/ PATTERN .svn EXCLUDE ) After adding this line to CMakeLists.tx

Re: [CMake] option, configure_file and ON/OFF

2010-11-23 Thread Michael Hertling
On 11/23/2010 10:30 PM, Anton Deguet wrote: > Hello, > > I am trying to use a UI option to set a value used in configure_file and > ideally obtain a file that doesn't use ON/OFF. Here is a CMake sample: > option (MYLIB_HAS_WHATEVER "Use whatever library" OFF) > > In my config.h.in I have: >

Re: [CMake] test property COST not working in cmake 2.8.3?

2010-11-23 Thread David Cole
It might be due to this commit: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=142edf8ad4baccd991a6a8a3e5283d0b575acca2 (first released in 2.8.3) Or this one: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b4d27dc041c9164d6f3ad39e192f4b7d116ca3b3 (first released in 2.8.2) Either way, seem

[CMake] Using ctest

2010-11-23 Thread Cochran, Bill
Hello, I have nearly succeeded moving a project from an autotools based system to a CMake/CTest/CDash system. I must say I am impressed with CMake. I have two questions though: 1) Is it possible for CTest to use a shell script which calls cmake? The project depends on a dozen TPLs installe

[CMake] test property COST not working in cmake 2.8.3?

2010-11-23 Thread Tyler Roscoe
I use set_tests_properties (... COST -500) to force my code coverage checks to run after all the unit tests have run. This has stopped working and I'm reasonably confident that the only thing that changed was an upgrade from cmake 2.8.0 or 2.8.1 to 2.8.3. I couldn't find anything in the bug tracke

[CMake] option, configure_file and ON/OFF

2010-11-23 Thread Anton Deguet
Hello, I am trying to use a UI option to set a value used in configure_file and ideally obtain a file that doesn't use ON/OFF. Here is a CMake sample: option (MYLIB_HAS_WHATEVER "Use whatever library" OFF) In my config.h.in I have: #define ON 1 #define OFF 0 #define MYLIB_HAS_WHATEVER

[CMake] How to disable Start Menu option with CPack NSIS

2010-11-23 Thread David Yat Sin
Hi, I am trying to generate a NSIS installer on Windows XP to install a library and I want to remove the Window where the installer asks for "Choose Start Menu Folder" I have tried: SET(CPACK_NSIS_MENU_LINKS ) SET(CPACK_NSIS_MENU_LINKS "") SET(CPACK_NSIS_MENU_LINKS OFF) UNSET(CPACK_NSIS_MENU_L

Re: [CMake] How to rerun cmake if a file changes

2010-11-23 Thread Vladislav Vaintroub
> -Original Message- > From: Eric Noulard [mailto:eric.noul...@gmail.com] > Sent: Dienstag, 23. November 2010 21:07 > To: Vladislav Vaintroub > Cc: cmake@cmake.org > Subject: Re: [CMake] How to rerun cmake if a file changes > > 2010/11/23 Vladislav Vaintroub : > > Hello, > > we use a tex

Re: [CMake] providing library information, what's the cmake way

2010-11-23 Thread Alexander Neundorf
On Tuesday 23 November 2010, Johannes Zarl wrote: > Sorry for hijacking this thread, but I'm wondering about this for some > time, too. (And the information in the doc/wiki is somewhat dated and/or > ambiguous [1,2,3,4]). I will just go on and write my thoughts and what I > (think I) know, in the h

Re: [CMake] set CMAKE_INSTALL_PREFIX in CMakeLists

2010-11-23 Thread Alexander Neundorf
On Tuesday 23 November 2010, tomas...@sbc.su.se wrote: > Dear Cmake users, > > 1) I am trying to set CMAKE_INSTALL_PREFIX in the CMakeLists file with > SET(CMAKE_INSTALL_PREFIX, "my/path") > but the variable remain unset; everything works fine if the variable is > set on the command line when invok

[CMake] Visual Studio 2008 and 2010 RUNTIME_OUTPUT_DIRECTORY doesn't work

2010-11-23 Thread Aaron R>
I'm trying to get my dlls and exes to output in a speicfic directory, regardless of build type. I should be able to do this using: set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin ) I still end up with (top dirs)/bin/Debug/myapp.exe (top dirs)/bin/Release/myapp.exe According to these

Re: [CMake] How to rerun cmake if a file changes

2010-11-23 Thread Eric Noulard
2010/11/23 Vladislav Vaintroub : > Hello, > we use a text file as input for out build to store version info.  The > content of this file is > ./VERSION: > > MYSQL_VERSION_MAJOR=5 > MYSQL_VERSION_MINOR=5 > MYSQL_VERSION_PATCH=8 > MYSQL_VERSION_EXTRA= > > During cmake run, the information is extracte

[CMake] How to rerun cmake if a file changes

2010-11-23 Thread Vladislav Vaintroub
Hello, we use a text file as input for out build to store version info. The content of this file is ./VERSION: MYSQL_VERSION_MAJOR=5 MYSQL_VERSION_MINOR=5 MYSQL_VERSION_PATCH=8 MYSQL_VERSION_EXTRA= During cmake run, the information is extracted, parsed, CPACK_PACKAGE_FILE_NAME is generated, and

Re: [CMake] providing library information, what's the cmake way

2010-11-23 Thread Ian Monroe
On Mon, Nov 22, 2010 at 10:37 PM, Michael Hertling wrote: [snip] >> This seems like a common situation,  so I'm wondering what the common >> solution is. > > 'hope that helps. Thanks, yes that helps a lot. I figured there must be some method like this. @Johannes Zarl: hijack away, I'm also inter

Re: [CMake] set CMAKE_INSTALL_PREFIX in CMakeLists

2010-11-23 Thread Micha Renner
Am Dienstag, den 23.11.2010, 15:01 +0100 schrieb Michael Wild: > On 11/23/2010 02:33 PM, Micha Renner wrote: > > Am Dienstag, den 23.11.2010, 14:01 +0100 schrieb tomas...@sbc.su.se: > >> Dear Cmake users, > >> > >> 1) I am trying to set CMAKE_INSTALL_PREFIX in the CMakeLists file with > >> SET(CMAK

Re: [CMake] set_source_files_properties for includedirectories

2010-11-23 Thread Andrea Galeazzi
Marcel Loose ha scritto: On 23-11-2010 at 10:55, in message <4ceb8f76.80...@korg.it>, Andrea Galeazzi wrote: In a project I've got two groups of files having different include paths. These paths have some conflicts so I need to specify just one for each file requires i

Re: [CMake] set CMAKE_INSTALL_PREFIX in CMakeLists

2010-11-23 Thread Michael Wild
On 11/23/2010 02:33 PM, Micha Renner wrote: > Am Dienstag, den 23.11.2010, 14:01 +0100 schrieb tomas...@sbc.su.se: >> Dear Cmake users, >> >> 1) I am trying to set CMAKE_INSTALL_PREFIX in the CMakeLists file with >> SET(CMAKE_INSTALL_PREFIX, "my/path") > ^ >

Re: [CMake] set CMAKE_INSTALL_PREFIX in CMakeLists

2010-11-23 Thread Micha Renner
Am Dienstag, den 23.11.2010, 14:01 +0100 schrieb tomas...@sbc.su.se: > Dear Cmake users, > > 1) I am trying to set CMAKE_INSTALL_PREFIX in the CMakeLists file with > SET(CMAKE_INSTALL_PREFIX, "my/path") ^ No comma! greetings Micha __

Re: [CMake] CMake adds "lib" prefix to library. Bug?

2010-11-23 Thread Rolf Eike Beer
> Hi list. > > Not sure if this is a bug or something stupid I've done. On several > Windows build environments (two XP, two 7, this happens with 2.8.2 and > 2.8.3), I'm getting the error: > > c:/compilers/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: > cannot find -llibodbc32

[CMake] set CMAKE_INSTALL_PREFIX in CMakeLists

2010-11-23 Thread tomasoni
Dear Cmake users, 1) I am trying to set CMAKE_INSTALL_PREFIX in the CMakeLists file with SET(CMAKE_INSTALL_PREFIX, "my/path") but the variable remain unset; everything works fine if the variable is set on the command line when invoking cmake (-DCMAKE_INSTALL_PREFIX=my/path). 2) I am also looking

[CMake] CMake adds "lib" prefix to library. Bug?

2010-11-23 Thread Adam J Richardson
Hi list. Not sure if this is a bug or something stupid I've done. On several Windows build environments (two XP, two 7, this happens with 2.8.2 and 2.8.3), I'm getting the error: c:/compilers/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot find -llibodbc32 That's clear

Re: [CMake] set_source_files_properties for include directories

2010-11-23 Thread Marcel Loose
>>> On 23-11-2010 at 10:55, in message <4ceb8f76.80...@korg.it>, Andrea Galeazzi wrote: > In a project I've got two groups of files having different include > paths. These paths have some conflicts so I need to specify just one > for each file requires it. > My first idea was to apply set_sour

Re: [CMake] providing library information, what's the cmake way

2010-11-23 Thread Johannes Zarl
Sorry for hijacking this thread, but I'm wondering about this for some time, too. (And the information in the doc/wiki is somewhat dated and/or ambiguous [1,2,3,4]). I will just go on and write my thoughts and what I (think I) know, in the hope that somebody corrects those things I got wrong.

[CMake] [PackageMaker] Install location customization

2010-11-23 Thread Domagoj Saric
Hi, Is there any way to: - disable the destination selection/customization altogether (both the "Change Install Location" option and the respective page and the "Choose Folder..." option one gets to if one clicks on "Change Install Location") - disable the "Choose Folder..." option even though t

Re: [CMake] cmake 2.8.3 forces -rdynamic for pf90 in pure fortran projects

2010-11-23 Thread Verweij, Arjen
Hi Brad, >Please try the patch below. It gets rid of -rdynamic for pure F90. I will try in a C/C++/F77/F90 project soonish (hopefully today). I didn't check if other flags get cleared as well. Thanks, Arjen >diff --git a/Modules/Platform/Linux-PGI.cmake b/Modules/Platform/Linux- >PGI.cmake >in

[CMake] set_source_files_properties for include directories

2010-11-23 Thread Andrea Galeazzi
In a project I've got two groups of files having different include paths. These paths have some conflicts so I need to specify just one for each file requires it. My first idea was to apply set_source_files_properties with a property like include_directories but I don't find anything similar. M