Author: spetreolle
Date: Mon Sep 5 12:41:18 2011
New Revision: 53597
URL:
http://svn.reactos.org/svn/reactos?rev=53597&view=rev
Log:
[CMAKE]
Don't assume CMAKE_SHARED_LIBRARY_ASM_FLAGS exists.
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=53597&…
==============================================================================
--- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Mon Sep 5 12:41:18 2011
@@ -9,7 +9,9 @@
add_compile_flags("-Werror")
# For some reason, cmake sets -fPIC, and we don't want it
-string(REPLACE "-fPIC" "" CMAKE_SHARED_LIBRARY_ASM_FLAGS
${CMAKE_SHARED_LIBRARY_ASM_FLAGS})
+if(DEFINED CMAKE_SHARED_LIBRARY_ASM_FLAGS)
+ string(REPLACE "-fPIC" "" CMAKE_SHARED_LIBRARY_ASM_FLAGS
${CMAKE_SHARED_LIBRARY_ASM_FLAGS})
+endif()
# Tuning
if(ARCH MATCHES i386)