Branch: master

47d77551 2014-10-13 16:52:13 Slávek Banko
Fix FTBFS if PIE is not supported
M modules/TDEMacros.cmake
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index c271c98..09fe6c6 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -1026,8 +1026,8 @@
 
   # set PIE flags for setuid binaries
   if( _setuid )
-    set_target_properties( ${_target} PROPERTIES COMPILE_FLAGS ${TDE_PIE_CFLAGS} )
-    set_target_properties( ${_target} PROPERTIES LINK_FLAGS ${TDE_PIE_LDFLAGS} )
+    set_target_properties( ${_target} PROPERTIES COMPILE_FLAGS "${TDE_PIE_CFLAGS}" )
+    set_target_properties( ${_target} PROPERTIES LINK_FLAGS "${TDE_PIE_LDFLAGS}" )
   endif( _setuid )
 
   # set destination directory