Re: [CMake] problems with CMAKE_CFG_INTDIR in initial cache

2011-04-04 Thread Dominik Szczerba
On Tue, Apr 5, 2011 at 6:54 AM, Micha Renner wrote: > Am Montag, den 04.04.2011, 21:22 +0200 schrieb Dominik Szczerba: >> CMAKE_CFG_INTDIR > > This value is evaluated by the native build system -> this variable is > suitable only for use in command lines that will be evaluated at build > time (aft

[CMake] CMake needs tmp directory manually created for GCC to work

2011-04-04 Thread michael kapelko
Hello. I'm using Cygwin as a shell, and MinGW as a compiler. I'm experiencing a weird build problem with CMake. Steps to reproduce the problem. 1. Install Cygwin with standard packages. 2. Download and unpack the following MinGW archives into C:/MinGW: - [binutils-2.21-2-mingw32-bin.tar.lzma h

Re: [CMake] problems with CMAKE_CFG_INTDIR in initial cache

2011-04-04 Thread Micha Renner
Am Montag, den 04.04.2011, 21:22 +0200 schrieb Dominik Szczerba: > CMAKE_CFG_INTDIR This value is evaluated by the native build system -> this variable is suitable only for use in command lines that will be evaluated at build time (after the cmake run). Please see: www.cmake.org/cmake/help/cmake-

Re: [CMake] CMake and include only libraries

2011-04-04 Thread Michael Wild
On 04/05/2011 03:53 AM, Michael Hertling wrote: > On 04/04/2011 07:30 PM, Theodore Papadopoulo wrote: > >> Hi, >> >> I'm trying to use cmake to install a include only library. >> I'd like to use the export feature as described in >> >> http://www.itk.org/Wiki/CMake/Tutorials/How_to_create_a_P

Re: [CMake] CMake and include only libraries

2011-04-04 Thread Michael Hertling
On 04/04/2011 07:30 PM, Theodore Papadopoulo wrote: > Hi, > > I'm trying to use cmake to install a include only library. > I'd like to use the export feature as described in > > http://www.itk.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file > > and I found the idea of us

Re: [CMake] How to write find_package when *Config.cmake is given?

2011-04-04 Thread Michael Wild
On 04/04/2011 08:17 PM, Hauke Heibel wrote: > Hi, > > I am wondering how to write find_package when I am providing a > Config.cmake file. > > Do I do something like this? > > find_file(MY_CONFIG_FILE "Config.cmake" HINTS "...") > if (MY_CONFIG_FILE) > include(${MY_CONFIG_FILE}) > endif() > >

[CMake] problems with CMAKE_CFG_INTDIR in initial cache

2011-04-04 Thread Dominik Szczerba
I am configuring my project by loading an initial cache like "cmake -C initial_cache.cmake ...". I specify a linking folder in this file like this: SET(MY_LINK_DIR P:/my_package/x64/${CMAKE_CFG_INTDIR} CACHE PATH "doc") but LINK_DIR is then seen e.g. with cmake-gui as P:/my_package/x64 only. Of c

[CMake] How to write find_package when *Config.cmake is given?

2011-04-04 Thread Hauke Heibel
Hi, I am wondering how to write find_package when I am providing a Config.cmake file. Do I do something like this? find_file(MY_CONFIG_FILE "Config.cmake" HINTS "...") if (MY_CONFIG_FILE) include(${MY_CONFIG_FILE}) endif() What I actually would like to have is a configuration like this /foo/

[CMake] CMake and include only libraries

2011-04-04 Thread Theodore Papadopoulo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm trying to use cmake to install a include only library. I'd like to use the export feature as described in http://www.itk.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file and I found the idea of using set_target_pro

Re: [CMake] Exclude source files from build for a specific configuration with Visual Studio

2011-04-04 Thread Gaylord Charles
2011/4/3 Michael Hertling > On 04/01/2011 03:02 PM, Gaylord Charles wrote: > > Hello, > > > > I am migrating a project from Visual Studio 8 to CMake and I look for a > way > > to exclude files from build for a defined configuration. > > > > I think the "HEADER_FILE_ONLY" source file property can

Re: [CMake] How to make the installation less verbose?

2011-04-04 Thread Pere Mato Vila
Thanks for the confirmation. Cheers, Pere On Apr 4, 2011, at 4:44 PM, David Cole wrote: You didn't miss anything. The code that does this looks like this in Source/cmFileCommand.cxx: std::string message = (copy? "Installing: " : "Up-to-date: "); message += toFile; this->Makefile->Di

Re: [CMake] How to make the installation less verbose?

2011-04-04 Thread Michael Wild
On 04/04/2011 04:44 PM, David Cole wrote: > You didn't miss anything. The code that does this looks like this in > Source/cmFileCommand.cxx: > > std::string message = (copy? "Installing: " : "Up-to-date: "); > message += toFile; > this->Makefile->DisplayStatus(message.c_str(), -1); >

Re: [CMake] How to make the installation less verbose?

2011-04-04 Thread David Cole
You didn't miss anything. The code that does this looks like this in Source/cmFileCommand.cxx: std::string message = (copy? "Installing: " : "Up-to-date: "); message += toFile; this->Makefile->DisplayStatus(message.c_str(), -1); As you can see, it's unconditional, and is always printe

[CMake] How to make the installation less verbose?

2011-04-04 Thread Pere Mato Vila
Perhaps I missed something trivial but I do not know how to make the installation step less verbose. I get many (thousands for a large project) of informational messages that nothing was needed to be done when making the 'install' target with Unix make. For example: -- Up-to-date: /build/mato/

Re: [CMake] Why does XCODE_DEPEND_HELPER delete my target after it has been build?

2011-04-04 Thread Bill Hoffman
On 4/2/2011 10:48 AM, Kenny Erleben wrote: Hi, I got a cmake project that builds one static lib and one target that depends on my static lib. I have set the ARCHIVE_OUTPUT_DIRECOTRY target properties to ${PROJECT_SOURCE_DIR}/lib and the RUNTIME_OUTPUT_DIRECOTRY target properties to ${PROJECT_SO

[CMake] OS X Framework and their name

2011-04-04 Thread Marco Antognini
Hi, I'm currently trying to produce a framework with CMake where its name depend on the build type (release vs debug). For example in release mode I want "sfml-system.framework" (which I get). Now I'm trying to get "sfml-system-d.framework" in debug mode. I've read in another mail that DEBUG_P