Author: cwittich
Date: Thu Mar 1 21:00:22 2012
New Revision: 55955
URL:
http://svn.reactos.org/svn/reactos?rev=55955&view=rev
Log:
[cmake]
this should work according to Amine
Modified:
trunk/reactos/cmake/gcc.cmake
Modified: trunk/reactos/cmake/gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/gcc.cmake?rev=55955&…
==============================================================================
--- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Thu Mar 1 21:00:22 2012
@@ -20,8 +20,7 @@
#file(TO_NATIVE_PATH ${REACTOS_SOURCE_DIR} REACTOS_SOURCE_DIR_NATIVE)
#workaround
set(REACTOS_SOURCE_DIR_NATIVE ${REACTOS_SOURCE_DIR})
-set(TEST_ENV $ENV{windir})
-if(DEFINED TEST_ENV)
+ if(CMAKE_HOST_SYSTEM_NAME MATCHES Windows)
string(REPLACE "/" "\\" REACTOS_SOURCE_DIR_NATIVE
${REACTOS_SOURCE_DIR})
endif()
add_compile_flags("-fdebug-prefix-map=${REACTOS_SOURCE_DIR_NATIVE}=ReactOS")