[vlc-commits] contrib: escape DarwinOS compilation flags to fix installations with cmake

Felix Paul Kühne git at videolan.org
Sat May 26 18:35:50 CEST 2018


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Sat May 26 18:22:54 2018 +0200| [20f27d6ccc97c139caf8c7a16808ace25a625bb9] | committer: Felix Paul Kühne

contrib: escape DarwinOS compilation flags to fix installations with cmake

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=20f27d6ccc97c139caf8c7a16808ace25a625bb9
---

 contrib/src/main.mak | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 26e352cb5b..cb5aea3d2e 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -480,9 +480,9 @@ endif
 endif
 ifdef HAVE_DARWIN_OS
 	echo "set(CMAKE_SYSTEM_NAME Darwin)" >> $@
-	echo "set(CMAKE_C_FLAGS $(CFLAGS) $(EXTRA_CFLAGS))" >> $@
-	echo "set(CMAKE_CXX_FLAGS $(CFLAGS) $(EXTRA_CXXFLAGS))" >> $@
-	echo "set(CMAKE_LD_FLAGS $(LDFLAGS))" >> $@
+	echo "set(CMAKE_C_FLAGS \"$(CFLAGS) $(EXTRA_CFLAGS)\")" >> $@
+	echo "set(CMAKE_CXX_FLAGS \"$(CFLAGS) $(EXTRA_CXXFLAGS)\")" >> $@
+	echo "set(CMAKE_LD_FLAGS \"$(LDFLAGS)\")" >> $@
 	echo "set(CMAKE_AR ar CACHE FILEPATH "Archiver")" >> $@
 ifdef HAVE_IOS
 	echo "set(CMAKE_OSX_SYSROOT $(IOS_SDK))" >> $@



More information about the vlc-commits mailing list