[vlc-commits] contrib: cmake: set the Debug/Release target for all operating systems.
Konstantin Pavlov
git at videolan.org
Tue Dec 5 09:19:10 CET 2017
vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Tue Dec 5 11:17:54 2017 +0300| [30b6a6691431a6245a7f27ffd3fb061c3f6b50c6] | committer: Konstantin Pavlov
contrib: cmake: set the Debug/Release target for all operating systems.
Previously it was under HAVE_WIN32, which is probably not what was
intended.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=30b6a6691431a6245a7f27ffd3fb061c3f6b50c6
---
contrib/src/main.mak | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 7fb8f9bff4..e423b1641f 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -458,6 +458,11 @@ help:
# CMake toolchain
toolchain.cmake:
$(RM) $@
+ifndef WITH_OPTIMIZATION
+ echo "set(CMAKE_BUILD_TYPE Debug)" >> $@
+else
+ echo "set(CMAKE_BUILD_TYPE Release)" >> $@
+endif
ifdef HAVE_WIN32
ifdef HAVE_WINDOWSPHONE
echo "set(CMAKE_SYSTEM_NAME WindowsPhone)" >> $@
@@ -468,11 +473,6 @@ 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
ifdef HAVE_CROSS_COMPILE
echo "set(CMAKE_RC_COMPILER $(HOST)-windres)" >> $@
endif
More information about the vlc-commits
mailing list