[vlc-devel] [PATCH] contrib: only set CMAKE_DEBUG_POSTFIX for windows targets
Steve Lhomme
robux4 at ycbcr.xyz
Wed Jan 29 14:04:14 CET 2020
For other targets it's not needed and creates a warning.
---
contrib/src/main.mak | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 275188ee18c..27722baf513 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -398,7 +398,10 @@ endif
RECONF = mkdir -p -- $(PREFIX)/share/aclocal && \
cd $< && $(AUTORECONF) -fiv $(ACLOCAL_AMFLAGS)
CMAKE = cmake . -DCMAKE_TOOLCHAIN_FILE=$(abspath toolchain.cmake) \
- -DCMAKE_INSTALL_PREFIX=$(PREFIX) $(CMAKE_GENERATOR) -DCMAKE_DEBUG_POSTFIX:STRING=
+ -DCMAKE_INSTALL_PREFIX=$(PREFIX) $(CMAKE_GENERATOR)
+ifdef HAVE_WIN32
+CMAKE += -DCMAKE_DEBUG_POSTFIX:STRING=
+endif
ifdef MSYS_BUILD
CMAKE += -DCMAKE_LINK_LIBRARY_SUFFIX:STRING=.a
endif
--
2.17.1
More information about the vlc-devel
mailing list