[cmake]
authorChristoph von Wittich <christoph_vw@reactos.org>
Thu, 1 Mar 2012 21:00:22 +0000 (21:00 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Thu, 1 Mar 2012 21:00:22 +0000 (21:00 +0000)
this should work according to Amine

svn path=/trunk/; revision=55955

reactos/cmake/gcc.cmake

index ad2e5ad..8d64604 100644 (file)
@@ -20,8 +20,7 @@ add_compile_flags("-pipe -fms-extensions")
 #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")