[CMake] FindBoost

2009-04-18 Thread Nadir SOUALEM
${UPPER_CMAKE_BUILD_TYPE}} ) I would like for example to use in debug mode, but CMAKE_BUILD_TYPE=Debug(documentation) not DEBUG and FindBoost use DEBUG (upperCase) (DEBUG different of Debug in Unix case) Thank You -- Nadir SOUALEM ___ Powered by

Re: [CMake] Using C++ compilers for C source files?

2009-04-07 Thread Nadir SOUALEM
source/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake Try to remove your CMakeCache ... -- Nadir SOUALEM Ingénieur INRIA - Équipe SAGE

Re: [CMake] Using C++ compilers for C source files?

2009-04-03 Thread Nadir SOUALEM
Nadir SOUALEM wrote: Robert Blake wrote: I'm converting a large mixed C++/C cmake application to C++. The project has many ".c" files that I would like to compile with the C++ compiler instead of the C compiler. Does anyone know the proper way to do this in CMake? Thing

Re: [CMake] Using C++ compilers for C source files?

2009-04-03 Thread Nadir SOUALEM
ase keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake Try SET_SOURCE_FILES_PROPERTIES( file1.c file2.c PROPERTIES LAN

Re: [CMake] Way to use precompilation directive on cmake and conditionnal linking

2009-03-24 Thread Nadir SOUALEM
Tyler wrote: On Tue, Mar 24, 2009 at 04:55:53PM +0100, Nadir SOUALEM wrote: Thank you Tyler , i use the same method for linking, but i thought there was a better way than: if (WITH_OPENGL) add_definitions (-DOPENGL) else (WITH_OPENGL) add_definitions (-DNO_OPENGL) endif (WITH_OPENGL) for

Re: [CMake] Way to use precompilation directive on cmake and conditionnal linking

2009-03-24 Thread Nadir SOUALEM
Tyler Roscoe wrote: On Tue, Mar 24, 2009 at 09:18:01AM +0100, Nadir SOUALEM wrote: I would like to use precompilation directive such NO_OPENGL Is there a way to use it with this command line ? cmake -DCMAKE_BUILD_TYPE=Debug or must i use something like: cmake -DCMAKE_BUILD_TYPE=Debug

Re: [CMake] Way to use precompilation directive on cmake and conditionnal linking

2009-03-24 Thread Nadir SOUALEM
Nadir SOUALEM wrote: I would like to use precompilation directive such NO_OPENGL Is there a way to use it with this command line ? cmake -DCMAKE_BUILD_TYPE=Debug or must i use something like: cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_OPENGL=0 with an if statement: if(NOT WITH_OPENGL

Re: [CMake] Custom Build Type GCC on Linux

2009-03-24 Thread Nadir SOUALEM
an/listinfo/cmake try to delete your CMakeCache.txt $rm CMakeCache.txt and reload cmake: cmake -DCMAKE_BUILD_TYPE=Debug To avoid these manipulations, try to do an Out Source build -- Nadir SOUALEM Ingénieur INRIA - Équipe SAGE ___ Powered by www.k

[CMake] Way to use precompilation directive on cmake and conditionnal linking

2009-03-24 Thread Nadir SOUALEM
I would like to use precompilation directive such NO_OPENGL Is there a way to use it with this command line ? cmake -DCMAKE_BUILD_TYPE=Debug or must i use something like: cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_OPENGL=0 with an if statement: if(NOT WITH_OPENGL) ADD_DEFINITIONS(-DNO_OPENGL) endif

Re: [CMake] [Cmake] How to delete cache files? Debug, Release Configuration

2009-03-24 Thread Nadir SOUALEM
Christian Ehrlicher wrote: Von: Nadir SOUALEM In my CMakeLists.txt, i use such things like: FIND_LIBRARY(LIB_UMFPACK LIB_UMFPACK /opt/UMFPACK5.0.3/build/linux_eclipse/LIB_UMFPACK/${CMAKE_BUILD_TYPE}) So when i run: cmake -DCMAKE_BUILD_TYPE=Debug in my CMakeCache.txt, i find //Path to a

[CMake] [Cmake] How to delete cache files? Debug, Release Configuration

2009-03-23 Thread Nadir SOUALEM
In my CMakeLists.txt, i use such things like: FIND_LIBRARY(LIB_UMFPACK LIB_UMFPACK /opt/UMFPACK5.0.3/build/linux_eclipse/LIB_UMFPACK/${CMAKE_BUILD_TYPE}) So when i run: cmake -DCMAKE_BUILD_TYPE=Debug in my CMakeCache.txt, i find //Path to a library. LIB_UMFPACK:FILEPATH=/opt/UMFPACK5.0.3/bui