mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
1bcff6cffa
The previous msbuild integration only worked if VS2010 was installed. This patch renames the current integration to LLVM-vs2010 and adds LLVM-vs2012. Differential Revision: http://llvm-reviews.chandlerc.com/D1614 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190173 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
864 B
CMake
27 lines
864 B
CMake
if (WIN32)
|
|
set(prop_file_in "Microsoft.Cpp.Win32.llvm.props.in")
|
|
set(prop_file_v100 "Microsoft.Cpp.Win32.LLVM-vs2010.props")
|
|
set(prop_file_v110 "Microsoft.Cpp.Win32.LLVM-vs2012.props")
|
|
|
|
# CPack will install a registry key in this format that we wish to reference.
|
|
set(REG_KEY "${CMAKE_PROJECT_NAME} ${CPACK_PACKAGE_VERSION}")
|
|
|
|
set(VS_VERSION "v100")
|
|
configure_file(${prop_file_in} ${prop_file_v100})
|
|
set(VS_VERSION "v110")
|
|
configure_file(${prop_file_in} ${prop_file_v110})
|
|
|
|
set(REG_KEY)
|
|
set(VS_VERSION)
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${prop_file_v100}" DESTINATION tools/msbuild)
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${prop_file_v110}" DESTINATION tools/msbuild)
|
|
|
|
install(DIRECTORY .
|
|
DESTINATION tools/msbuild
|
|
FILES_MATCHING
|
|
PATTERN "*.targets"
|
|
PATTERN "*.bat"
|
|
PATTERN ".svn" EXCLUDE
|
|
)
|
|
endif()
|