[CMake] Replacing compiler flags for certain project subdirectories

2011-03-25 Thread Whitcomb, Mr. Tim
I'm in the process of adding Cmake-build capability to a Fortran project that currently follows a traditional recursive-make build structure. I've converted all the makefiles to CMakeLists.txt files and can now produce all the target libraries and executables with their dependencies correctly r

Re: [CMake] Too many packages being created for my project with CPack

2011-03-25 Thread Tyler
I just use: set (CPACK_GENERATOR "ZIP") and that seems to work. I think those CPACK_BINARY_* variables you're setting are only meaningful in CPack's context, not in CMake's (i.e. those vars are what CMake writes out in CPackConfig.cmake for Cpack's later use). hth, tyler On Fri, Mar 25, 2011 a

[CMake] Too many packages being created for my project with CPack

2011-03-25 Thread Michael Jackson
I have a project on OS X that I am using CMake 2.8.3 and generating makefiles. When I do "make package" I get a .dmg, .sh, .stz and .zip files all created. Here is what I think is the relative portion of my CPack code that gets included in my CMakeLists.txt file: SET(CPACK_BINARY_BUNDLE "OF

Re: [CMake] Generator vor Intel compliler on Windows

2011-03-25 Thread David Cole
This should work, from an nmake command prompt: mkdir build cd build set CC=C:/path/to/icl.exe set CXX=C:/path/to/icl.exe cmake -G "NMake Makefiles" ..\src On Fri, Mar 25, 2011 at 1:02 PM, Andreas Fabri < andreas.fa...@geometryfactory.com> wrote: > Hello, > > Is there a generator for "nmake a

[CMake] Generator vor Intel compliler on Windows

2011-03-25 Thread Andreas Fabri
Hello, Is there a generator for "nmake and icl.exe" on Windows. I already tried to use the nmake generator and to set the C and C++ compiler cmake variables, but that didn't work either. Any suggestion or help would be appreciated. andreas -- Andreas Fabri, PhD Chief Officer, GeometryFactor

Re: [CMake] Different CMAKE_CXX_FLAGS for different executables

2011-03-25 Thread David Doria
> Could you post the output of "make VERBOSE=1"? > > On *nix, the following CMakeLists.txt works as expected: > The output of "make VERBOSE=1" contains: > >> .../c++ -DUNIX -o .../SetTargetProperties.cxx.o -c >> .../SetTargetProperties.cxx It is working properly now. I must not have done a 'make

Re: [CMake] Eclipse generator - scanner-discovered include pathsand pre-processor symbols

2011-03-25 Thread Chatterjee, Shash
Hi Alex, >- CMakeFindEclipseCDT4.cmake : this is slightly changed version from the one >shipped with cmake 2.8.4, it produces debug output. Please replace the >CMakeFindEclipseCDT4.cmake in your cmake 2.8.4 installation with this file. >Then create a fresh and empty build directory, and let cma

Re: [CMake] FIND_LIBRARY and PATH_SUFFIXES: documentation or implementation bug

2011-03-25 Thread Marcel Loose
Hi Michael, > AFAICS, this is not true, see cmFindBase::AddPathSuffixes(). The paths > with the additional suffixes are searched first, but the paths without > the suffixes are considered, too. Look at the following CMakeLists.txt: > > CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR) > PROJECT(PATH