[vlc-commits] contrib: only set CMAKE_DEBUG_POSTFIX for windows targets

Steve Lhomme git at videolan.org
Fri Jan 31 11:34:23 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jan 29 13:37:06 2020 +0100| [542d7a797a803cbfeb6c93aad9d16be215d8fecb] | committer: Steve Lhomme

contrib: only set CMAKE_DEBUG_POSTFIX for windows targets

For other targets it's not needed and creates a warning.

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

 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 275188ee18..27722baf51 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



More information about the vlc-commits mailing list