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
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
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
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
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
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
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