vlc | branch: master | Steve Lhomme <[email protected]> | 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 <[email protected]>

> 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

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to