diff src/msvc-build-cmake-1.patch @ 3146:d468ce1eb636

[MSVC] fix cmake for use with clgcc/clg++ - adapt toolchain file (avoid making cmake think it's cross-compiling) - patch cmake to prevent using link library prefix (-l) and suffix (.lib)
author Michael Goffioul <michael.goffioul@gmail.com>
date Wed, 17 Jul 2013 10:04:30 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/msvc-build-cmake-1.patch	Wed Jul 17 10:04:30 2013 -0400
@@ -0,0 +1,11 @@
+diff -ur cmake-2.8.9-orig/Modules/Platform/Windows.cmake cmake-2.8.9/Modules/Platform/Windows.cmake
+--- cmake-2.8.9-orig/Modules/Platform/Windows.cmake	2012-08-09 14:15:19 -0400
++++ cmake-2.8.9/Modules/Platform/Windows.cmake	2013-07-17 09:59:10 -0400
+@@ -8,6 +8,7 @@
+ SET(CMAKE_IMPORT_LIBRARY_SUFFIX ".lib")
+ SET(CMAKE_EXECUTABLE_SUFFIX ".exe")          # .exe
+ SET(CMAKE_LINK_LIBRARY_SUFFIX ".lib")
++SET(CMAKE_LINK_LIBRARY_FLAG "")
+ SET(CMAKE_DL_LIBS "")
+ 
+ SET(CMAKE_FIND_LIBRARY_PREFIXES "")