[CMake] execute_process, output_variable : semicolons are stripped out

2008-10-03 Thread jbd
Hello everybody, i've got a little problem which i can't figure out. If i run a command with execute_process which deal with a file containing some semi colon ;, i lose them in the OUTPUT_VARIABLE. Any idea ? Here is a self explanatory CMakeLists.txt. Create a file called myfile containing

[CMake] add_custom_target is executed during make install

2006-12-28 Thread Jbd
Hello everybody. I'm running cmake version 2.4-patch 3. I've got a problem. I'm quite sure i'm not using the good way to do it. I need to call a shell script during the building process. # First, i'm generating some files using a python script # After that, i've got a generated Makefile in the

[CMake] File globbing with relative path

2006-06-26 Thread jbd
Hello everybody, Sorry for this question, i didn't find a solution on the web or even in the 2.2 version book, but i'm quite a beginner regarding CMake =) I'd like to retrieve the relative path of a list of files. For example : FILE (GLOB SRC_FILES Test*.cxx Test*.cpp Test*.c) Here, SRC_FILES

[CMake] Re: File globbing with relative path

2006-06-26 Thread jbd
See the RELATIVE option FILE(GLOB variable [RELATIVE path] [globbing expressions]...) Jan. Thank you for suck a quick answer, but i can't figure out to make that work. I'm running CMake 2.2, and cmake --help-command FILE show me : FILE(GLOB variable [globbing expressions]...) and

[CMake] Re: Re: File globbing with relative path

2006-06-26 Thread jbd
This works here with CMake 2.4.2: Indeed, it work well with 2.4.2. I was running 2.2. Thank you for your patience ! ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Re: Managing warning level

2006-03-26 Thread jbd
Thank you for your answer. Indeed, i just have 2 cases. But i wanted to knwon the clever way to write clean CMakeLists.txt ! Thank you again ! That's only 2 cases. Use IF(CMAKE_COMPILER_IS_GNUCC) and IF(MSVC). At least, these are available in CMake 2.3. If you have more compilers than

[CMake] Managing warning level

2006-03-24 Thread jbd
Hello, Sorry to post this question, but i didn't find any answer to it. I'm wondering how to manage the warning level of a compilation process. Do i have to do some ugly IF(WIN32) foobar ? I'd like to do it the abstract way, since i need to compile on windows with mingw, visual and on GNU/Linux