[CMake] Removing from Cache doesn't work in Windows?

2009-06-15 Thread Michael Karcher
Hello everyone. I have a simple test CMakeLists.txt like this: message(Old value ${MY_VAR}) set(MY_VAR default value CACHE STRING test var) message(New value ${MY_VAR}) On Debian Linux, I get expected behaviour: karc...@hermes2:~/test$ cmake . [...] Old value New value default value [...]

[CMake] CMAKE_CURRENT_SOURCE_DIR with different values: bug?

2009-06-15 Thread Bruno Nery
Hello,    This problem happens when I need to use ${CMAKE_CURRENT_SOURCE_DIR} inside a script, but for an out-of-source build. When echoed from the CMakeLists.txt file, it outputs the right value (i.e., the source folder) However, when echoed from inside the script, it outputs the build folder

[CMake] Library in different location according to its version!

2009-06-15 Thread Benoit
Hello, I'm using the different version of the OpenCV library and i would like to make it easy to switch from one to another by changing its path in cmake-gui. Howerver, it seems that keeping the value in the cache make this impossible! here a sample of my code: IF(NOT OpenCV_FOUND) SET

Re: [CMake] How to create a static library out of other static libraries in CMAKE ?

2009-06-15 Thread Andreas Pakulat
On 14.06.09 20:50:22, Xiangyun Kong wrote: Thanks. When I link the mylib with other objects to form a dynamic library, I got a lot of undefined symbols. Thats normal, if you link to static libraries only the symbols that are used in your target are fetched from the static libs. So lets say

[CMake] Put svn revision into file on every make install

2009-06-15 Thread Jean-Pierre Bergamin
Hello cmake users I want to put the current subversion revision into a script every time I run make install. Currently, I use configure_file() to replace a variable in the script, but this only updates the script when either the script or something in CMakeLists.txt changes. Is there a way to

Re: [CMake] Put svn revision into file on every make install

2009-06-15 Thread Eric Noulard
2009/6/15 Jean-Pierre Bergamin ja...@ractive.ch: Hello cmake users I want to put the current subversion revision into a script every time I run make install. Currently, I use configure_file() to replace a variable in the script, but this only updates the script when either the script or

Re: [CMake] Put svn revision into file on every make install

2009-06-15 Thread Jean-Pierre Bergamin
Hello Eric 2009/6/15 Jean-Pierre Bergamin ja...@ractive.ch: Hello cmake users I want to put the current subversion revision into a script every time I run make install. Currently, I use configure_file() to replace a variable in the script, but this only updates the script when

Re: [CMake] Put svn revision into file on every make install

2009-06-15 Thread Eric Noulard
2009/6/15 Jean-Pierre Bergamin ja...@ractive.ch: Hello Eric 2009/6/15 Jean-Pierre Bergamin ja...@ractive.ch: Hello cmake users I want to put the current subversion revision into a script every time I run make install. Currently, I use configure_file() to replace a variable in the

Re: [CMake] Put svn revision into file on every make install

2009-06-15 Thread Jean-Pierre Bergamin
Eric Noulard schrieb: 2009/6/15 Jean-Pierre Bergamin ja...@ractive.ch: Hello Eric 2009/6/15 Jean-Pierre Bergamin ja...@ractive.ch: Hello cmake users I want to put the current subversion revision into a script every time I run make install. Currently, I use configure_file()

Re: [CMake] import library

2009-06-15 Thread Brad King
Brad King wrote: We'll have to teach CMake to work around the problem. Please submit a bug report here: Nevermind, I've fixed it already. I'll schedule the fix for release 2.6.5. If you really did mean to dllexport something, then you need to let VS put the import library somewhere. One

Re: [CMake] Hide target in Visual Studio

2009-06-15 Thread James Bigler
On Sun, Jun 14, 2009 at 8:31 AM, Macumber, Daniel daniel.macum...@nrel.govwrote: Hello, I am looking for info on how to hide (make not visible) targets in Visual Studio. I am working with generated code and am compiling several hundred individual SWIG dll's (I have a CMake macro that makes

[CMake] a bug in FindwxWidgets.cmake, linked with too many libraries by default under win32 platform

2009-06-15 Thread chen bin
If I link my program with my own jpeg-6b and wxwidgets lib(use FindwxWidgets.cmake) under win32, the conflict of jpeg lib happens. It is because the line SET(wxWidgets_COMMON_LIBRARIES png tiff jpeg zlib regex expat) in FindwxWidgets.cmake I want to start a wxwidgets console program in a