Re: [CMake] Fixed ProjectGUID

2011-01-19 Thread Sören Freudiger
...@kitware.com CC: Sören Freudiger muffmo...@gmx.de, cmake@cmake.org Betreff: Re: [CMake] Fixed ProjectGUID Hello, In Visual Studio 2010, ProjectGUID is a global. This bug provides a patch to add global definitions to CMake, but only up to Visual Studio 2008. It shouldn't be difficult

[CMake] VS resource compiler preprocessor defines

2011-01-18 Thread Sören Freudiger
Hello Right now the CXX preprocessor defines are also used as the preprocessor defines for the resource compiler (rc). Is there a way of changing that behavior? We are using different preprocessor defines for cl and rc. And sometimes we even connot use the cxx flags for the rc compiler... Any

Re: [CMake] VS resource compiler preprocessor defines

2011-01-18 Thread Sören Freudiger
Pakulat ap...@gmx.de An: cmake@cmake.org Betreff: Re: [CMake] VS resource compiler preprocessor defines On 18.01.11 14:11:15, Sören Freudiger wrote: Hello Right now the CXX preprocessor defines are also used as the preprocessor defines for the resource compiler (rc). Is there a way

Re: [CMake] VS resource compiler preprocessor defines

2011-01-18 Thread Sören Freudiger
17:24:57 +0100 Von: Andreas Pakulat ap...@gmx.de An: cmake@cmake.org Betreff: Re: [CMake] VS resource compiler preprocessor defines On 18.01.11 15:01:13, Sören Freudiger wrote: hmm.. okay. That means I have to set the target properties for the cxx files like this: add_executable

[CMake] Fixed ProjectGUID

2011-01-07 Thread Sören Freudiger
Hello Is it possible to set the ProjectGUID by CMake? Every time I generate a vcproj file with CMake the ProjectGUID changes. But we need to have a fixed one (because other projects are including the vcproj). Best regards SirAnn -- GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit gratis

[CMake] How to get rid off predefine XXX_EXPORTS @add_library(XXX SHARED ...)

2011-01-05 Thread Sören Freudiger
Hi I have a problem. After running CMake (VS 2003/2008 project) there's always a EXPORT preprocessor define in my project setting that I don't need. add_library(XXX SHARED ...) -- predefine XXX_EXPORTS I manually set this predefine in a correct way (means in upper case!). CMake generate

Re: [CMake] How to get rid off predefine XXX_EXPORTS @add_library(XXX SHARED ...)

2011-01-05 Thread Sören Freudiger
SHARED ...) On 01/05/2011 10:05 AM, Sören Freudiger wrote: Hi I have a problem. After running CMake (VS 2003/2008 project) there's always a EXPORT preprocessor define in my project setting that I don't need. add_library(XXX SHARED ...) -- predefine XXX_EXPORTS I manually set

[CMake] how consider pre build

2009-11-25 Thread Sören Freudiger
Hi One Problem. There's one file in my sources that produces a cxx file in a pre build step (similar to qt_ui or moc, swig ...) But the source file isn't a h,c,cxx, file. It's a .if file thus I caonnot put this to the project source files without getting an error. Ok, but step by step...

[CMake] Re - How can I change the compiler?

2009-11-22 Thread Sören Freudiger
Hi Taesoo We are also dealing with the mpicxx compiler. Best way (and the cmake way of doing that) is to change the env viariables CC and CXX. Because we are often switching between gxx and mpicxx, we are using bash scripts for that purpose: - #!bash export CC=/usr/bin/gcc-4.0

Re: [CMake] How can I change the compiler?

2009-11-22 Thread Sören Freudiger
That's right. But on bad configured cluster systems you have a lot of different mpi-compilers. I don't know what changes had have been done to the findMPI modul. But the last version I tried wasn't satisfying. And all you need to now are the compilers and the mpi library... -Ursprüngliche

Re: [CMake] string REGEX question

2009-11-21 Thread Sören Freudiger
Hi Steve SET(VAR C:\path\to\foo) -”\p” and “\f” are interpreted as escape sequences Setting VAR via CMake GUI it is internally interpreted as: C:\\path\\to\\foo That means you have to do following to obtain what you want to: SET(INPUT_VAR C:\\path\\to\\foo) #or just set this variable via the

[CMake] set_target_properties - compile flags problem

2009-11-21 Thread Sören Freudiger
Hello I'm in big trouble. I cannot change the cxx compile flags as I want. binary project for VS 2008 - example: ... ADD_EXECUTABLE( project ${source_files} ) SET_TARGET_PROPERTIES(project PROPERTIES COMPILE_FLAGS_DEBUG /MTd) SET_TARGET_PROPERTIES(project PROPERTIES COMPILE_FLAGS_RELEASE /MT) -

[CMake] set_target_properties - compile flags problem II

2009-11-21 Thread Sören Freudiger
: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] Im Auftrag von Sören Freudiger Gesendet: Samstag, 21. November 2009 11:34 An: cmake@cmake.org Betreff: [CMake] set_target_properties - compile flags problem Hello I'm in big trouble. I cannot change the cxx compile flags as I want. binary

[CMake] How to get ADD_DEFINITIONS variable?

2009-11-17 Thread Sören Freudiger
Hi @all In our project we are several times adding preprocessor defines via ADD_DEFINITIONS. Now I need to get these defines to add them for a ADD_CUSTOM_COMMAND (pre build via swig ). The documentations says that these defines are stored in COMPILE_DEFINITIONS but this variable is

[CMake] RE

2008-11-11 Thread Sören Freudiger
I'm using precompiled header and CMake (I just wrote an Macro). If someone is intressted, just write me an email... It's for MSVC (7-9) only right now! - SirAnn -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Bill Hoffman Gesendet: Dienstag, 11.

[CMake] //adding and changing compiler flags - best way

2008-11-09 Thread Sören Freudiger
No idea??? Problem in my solution is: user defined flags via gui are vanished at configure... -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Sören Freudiger Gesendet: Donnerstag, 6. November 2008 19:20 An: cmake@cmake.org Betreff: [CMake

[CMake] //adding and changing compiler flags - state of the art?

2008-11-06 Thread Sören Freudiger
Hi long long time ago I wrote this macro to add CXX flax: # ### ADD_CXX_FLAGS(flags) ### ### flags will be added to CMAKE_CXX_FLAGS###

[CMake] [cmake] windows dll and TARGET_LINK_LIBRARIES

2008-10-10 Thread Sören Freudiger
Hi How to handle windows dll dependences in CMake. CMakeList.txt = ADD_LIBRARY(MY_DLL MODULE ${ALL_SOURCES} ) #-- MSVC generates MY_DLL.dll and one # small MY_DLL.lib that has to be linked # to

[CMake] How to decide between Release and Debug at ADD_DEFINITIONS for MSVC?

2008-07-30 Thread Sören Freudiger
Hello I want to add _SCL_SECURE_NO_WARNINGS and _CRT_SECURE_NO_DEPRECATE at the MSVC Release configuration only. How can I do that? I found the open feature request: http://www.vtk.org/Bug/view.php?id=6269 Is there any workaround? -SirAnn ___

Re: [CMake] FindBoost.cmake updated on the bugtracker

2008-04-13 Thread Sören Freudiger
But be carefull... I got a lot of errors by using 4.3.0 within MinGW. OpenMP sometimes end in a compiler segmentation fault and some templates couldn't be resolved (although cl, intel9/10 and gcc 4.1 can do). so: good luck -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [CMake] FindBoost.cmake updated on the bugtracker

2008-04-08 Thread Sören Freudiger
Hi out there The new macro is pretty nice. But one section is still missing: IF (MSVC90) SET (_boost_COMPILER -vc90) ENDIF(MSVC90) And the option for the newest boost release ver. 1.35 So long, SirAnn -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL

[cmake] current_dir

2008-01-16 Thread Sören Freudiger
Hi Is there a way to find out in which directory I am? We have this kind of structure: /proj/source/package1/a.h /proj/source/package1/a.h /proj/source/package1/CMakePackage.txt /proj/source/package2/b.h /proj/source/package2/b.cpp

[CMake] SUBSTRING - STRING - shorten a string variable

2007-12-03 Thread Sören Freudiger
Hello Following problem: My CMakeList.txt file is somewhere like: E:/LBM_subversion/source/topology/amr3d/lbmd3q19/singlephase/testcases/RCF/a ll_in_one Now I want to have only the substring: E:/LBM_subversion/source Is it possible to get last string with the help of

AW: [CMake] SUBSTRING - STRING - shorten a string variable

2007-12-03 Thread Sören Freudiger
- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Brandon Van Every Gesendet: Montag, 3. Dezember 2007 21:01 An: cmake@cmake.org Betreff: Re: [CMake] SUBSTRING - STRING - shorten a string variable On Dec 3, 2007 12:56 PM, Sören Freudiger [EMAIL PROTECTED] wrote: Hello

[CMake] how to check if ENV exists

2007-11-16 Thread Sören Freudiger
Just a short question. How to check if an environment variable exist? Something like: IF( ENV{TESTVAR} ) ... Because elsewise I get errors at $ENV{TESTVAR} if TESTVAR doesn't exist... Best, SirAnn ___ CMake mailing list CMake@cmake.org

AW: [CMake] SOURCE_GROUP bug

2006-11-09 Thread Sören Freudiger
I just downloades the newest CVS and still have this bug :-( -Ursprüngliche Nachricht- Von: Sylvain Benner [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 9. November 2006 11:06 An: Sören Freudiger; cmake@cmake.org Betreff: Re: [CMake] SOURCE_GROUP bug It's a known bug (#2331

[CMake] SOURCE_GROUP bug

2006-11-08 Thread Sören Freudiger
Hi there's a bug within SOURCE_GROUP and subfolders: Example: DIRS ON HDD: \world \world\europe \world\europe\france\people \world\europe\france\paris \world\europe\france\paris\people CMAKELIST.TXT: SOURCE_GROUP(\\world a.cpp) SOURCE_GROUP(\\world\\europe b.cpp)

[CMake] SET_CXX_COMPILER

2006-02-16 Thread Sören Freudiger
Hi folks two questions: 1. my macro: MACRO(SET_CXX_COMPILER compiler) SET(CMAKE_CXX_COMPILER ${compiler} CACHE STRING C++ compiler FORCE) ENDMACRO(SET_CXX_COMPILER) and my implementation: SET_CXX_COMPILER(distcc mpicxx) results in a build.cmake file with distcc\ mpicxx ... the

[cmake] variable for first run

2006-02-09 Thread Sören Freudiger
Hi I know this question was asked long time ago and I answered it already, but maybe there is a new solution for the problem. I wrote a macro that adds CXX compiler flags to my existing ones: MACRO(ADD_CXX_FLAGS) FOREACH(arg ${ARGN}) SET(TMP ${arg}) #elsewise the Seperate command doesn't