mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 17:22:47 +08:00
[llvm] Install debug targets for cmake
This commit is contained in:
parent
24283ec1ee
commit
4228e1e389
@ -1,3 +1,3 @@
|
||||
Source: llvm
|
||||
Version: 5.0.0-1
|
||||
Version: 5.0.0-2
|
||||
Description: The LLVM Compiler Infrastructure
|
||||
|
@ -30,14 +30,19 @@ vcpkg_configure_cmake(
|
||||
-DLLVM_INCLUDE_EXAMPLES=OFF
|
||||
-DLLVM_INCLUDE_TESTS=OFF
|
||||
-DLLVM_ABI_BREAKING_CHECKS=FORCE_OFF
|
||||
-DLLVM_TOOLS_INSTALL_DIR=tools
|
||||
-DLLVM_TOOLS_INSTALL_DIR=tools/llvm
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
# Remove extra copy of cmake modules and include files
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/llvm)
|
||||
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/llvm)
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/debug/include
|
||||
${CURRENT_PACKAGES_DIR}/debug/tools
|
||||
${CURRENT_PACKAGES_DIR}/debug/share
|
||||
)
|
||||
|
||||
# Remove one empty include subdirectory if it is indeed empty
|
||||
file(GLOB MCANALYSISFILES ${CURRENT_PACKAGES_DIR}/include/llvm/MC/MCAnalysis/*)
|
||||
|
@ -81,9 +81,11 @@ function(vcpkg_fixup_cmake_targets)
|
||||
file(REMOVE ${UNUSED_FILES})
|
||||
endif()
|
||||
|
||||
# LLVM uses "LLVMExports-release.cmake"
|
||||
file(GLOB RELEASE_TARGETS
|
||||
"${RELEASE_SHARE}/*[Tt]argets-release.cmake"
|
||||
"${RELEASE_SHARE}/*[Cc]onfig-release.cmake"
|
||||
"${RELEASE_SHARE}/*[Ee]xports-release.cmake"
|
||||
)
|
||||
foreach(RELEASE_TARGET ${RELEASE_TARGETS})
|
||||
file(READ ${RELEASE_TARGET} _contents)
|
||||
@ -95,7 +97,8 @@ function(vcpkg_fixup_cmake_targets)
|
||||
file(GLOB DEBUG_TARGETS
|
||||
"${DEBUG_SHARE}/*[Tt]argets-debug.cmake"
|
||||
"${DEBUG_SHARE}/*[Cc]onfig-debug.cmake"
|
||||
)
|
||||
"${DEBUG_SHARE}/*[Ee]xports-debug.cmake"
|
||||
)
|
||||
foreach(DEBUG_TARGET ${DEBUG_TARGETS})
|
||||
get_filename_component(DEBUG_TARGET_NAME ${DEBUG_TARGET} NAME)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user