[vlc-devel] [PATCH 03/19] contrib: cmake: set the Debug/Release target depending on the bootstrap flags

Steve Lhomme robux4 at videolabs.io
Wed Jun 14 14:01:52 CEST 2017


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

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 28bd43c632..96306153f8 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -467,6 +467,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
-- 
2.12.1



More information about the vlc-devel mailing list