[vlc-commits] contrib: cmake: set the Debug/Release target depending on the bootstrap flags

Steve Lhomme git at videolan.org
Wed Jun 14 16:52:59 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Jun 14 14:01:52 2017 +0200| [a3dd549fbd1c4a8987ff9be1804205976a51909c] | committer: Hugo Beauzée-Luyssen

contrib: cmake: set the Debug/Release target depending on the bootstrap flags

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 contrib/src/main.mak | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 9f49f266ed..be37866702 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -463,6 +463,11 @@ else
 	echo "set(CMAKE_SYSTEM_NAME Windows)" >> $@
 endif
 endif
+ifndef WITH_OPTIMIZATION
+	echo "set(CMAKE_BUILD_TYPE Debug)" >> $@
+else
+	echo "set(CMAKE_BUILD_TYPE Release)" >> $@
+endif
 	echo "set(CMAKE_RC_COMPILER $(HOST)-windres)" >> $@
 endif
 ifdef HAVE_DARWIN_OS



More information about the vlc-commits mailing list