--Boundary-00=_qHN3D6r/AvJR4BF Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Christian, On Sunday 29 January 2006 15:11, Christian Ehrlicher wrote: ... > But it is not much: It's enough, exactly what I wanted to see :-) > CMake system information: > C compiler: D:/Programme/Microsoft Visual Studio 8/VC/bin/cl.exe > CXX compiler: D:/Programme/Microsoft Visual Studio 8/VC/bin/cl.exe > C compiler is gcc: > CXX compiler is g++: > System: Windows-5.0 > System name: Windows > System version: 5.0 > This is Windows So we can check either : if(CMAKE_C_COMPILER MATCHES "cl\.exe") or if(WINDOWS AND NOT CYGWIN AND NOT MINGW) Could you please also run cmake on the attached file, it produces a "AbsPathTest.txt" and post the contents ? Thanks Alex -- Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de Home: neundorf AT kde.org - http://www.kde.org alex AT neundorf.net - http://www.neundorf.net --Boundary-00=_qHN3D6r/AvJR4BF Content-Type: text/plain; charset="iso-8859-1"; name="CMakeLists.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="CMakeLists.txt" macro(LOG line) message(STATUS ${line}) file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AbsPathTest.txt "${line}\n") endmacro(LOG line) file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/AbsPathTest.txt "test\n") set(path1 "/abs/unix") set(path2 "../rel") set(path3 ${CMAKE_ROOT}) message(STATUS "dos: ${path3}") macro(GET_ABS_PATH _abs_filename _filename) IF(${_filename} MATCHES "^/.+") SET(${_abs_filename} ${_filename}) ELSE(${_filename} MATCHES "^/.+") IF(${_filename} MATCHES "^[a-zA-Z]:\\\\") SET(${_abs_filename} ${_filename}) ELSE(${_filename} MATCHES "^[a-zA-Z]:\\\\") SET(${_abs_filename} ${CMAKE_CURRENT_SOURCE_DIR}/${_filename}) ENDIF(${_filename} MATCHES "^[a-zA-Z]:\\\\") ENDIF(${_filename} MATCHES "^/.+") endmacro(GET_ABS_PATH) get_abs_path(abs ${path1}) log(${path1}) log(${abs}) get_abs_path(abs ${path2}) log(${path2}) log(${abs}) get_abs_path(abs "${path3}") log(${path3}) log(${abs}) --Boundary-00=_qHN3D6r/AvJR4BF--