[cmake]
authorChristoph von Wittich <christoph_vw@reactos.org>
Thu, 1 Mar 2012 19:43:00 +0000 (19:43 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Thu, 1 Mar 2012 19:43:00 +0000 (19:43 +0000)
fix for the fix
thanks Alex for testing

this should reduce testman log size by at least 500KB

svn path=/trunk/; revision=55953

reactos/cmake/gcc.cmake

index c48be25..d68eba5 100644 (file)
@@ -20,7 +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})
-if (WIN32)
+IF(${CMAKE_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")