Skip to content

Commit 134e41c

Browse files
committed
Fix compilation using both VS2008 or VS2010
1 parent be07674 commit 134e41c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

NinjaUrls.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ set(unix_source_sha256 "121c432cec32c8aea730a71a256a81442ac8446c6f0e7652ea312
77
set(windows_source_url "https://github.com/kitware/ninja/archive/v1.8.2.g3bbbe.kitware.dyndep-1.jobserver-1.zip")
88
set(windows_source_sha256 "01a2bb09bb2f6e6c0e4c9634e0491ad137fde80c3e99de581ee311401d07976a")
99

10+
if(MSVC AND (MSVC_VERSION EQUAL 1600 OR MSVC_VERSION LESS 1600))
11+
# Fix compilation using "Microsoft Visual C++ Compiler for Python 2.7" or "Visual Studio 2010"
12+
set(windows_source_url "https://github.com/jcfr/ninja/archive/kitware-staged-features-support-vs2008-vs2010.zip")
13+
set(windows_source_sha256 "d64d6ae2eaeed28832e9a9c28901b01f9d070d3f440346e585f68d490447f262")
14+
endif()
15+
1016
#-----------------------------------------------------------------------------
1117
# Ninja binaries
1218
set(linux32_binary_url "NA") # Linux 32-bit binaries not available

0 commit comments

Comments
 (0)