[vlc-commits] contrib: fix the CMake cross compilation path in msys2
Steve Lhomme
git at videolan.org
Mon Feb 18 10:33:40 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Feb 15 16:15:49 2019 +0100| [82f242fee378fb96f15c54de77340afdc19dd557] | committer: Steve Lhomme
contrib: fix the CMake cross compilation path in msys2
CMake doesn't recognize the msys pathes on Windows (even though it's build from
contribs).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=82f242fee378fb96f15c54de77340afdc19dd557
---
contrib/src/main.mak | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 6b4a873dab..34ff009dd6 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -533,7 +533,11 @@ endif
endif
echo "set(CMAKE_C_COMPILER $(CC))" >> $@
echo "set(CMAKE_CXX_COMPILER $(CXX))" >> $@
+ifeq ($(findstring msys,$(BUILD)),msys)
+ echo "set(CMAKE_FIND_ROOT_PATH `cygpath -m $(PREFIX)`)" >> $@
+else
echo "set(CMAKE_FIND_ROOT_PATH $(PREFIX))" >> $@
+endif
echo "set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> $@
ifdef HAVE_CROSS_COMPILE
echo "set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)" >> $@
More information about the vlc-commits
mailing list