mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 19:40:18 +08:00
d9b179fd46
* [llvm] install tools in tools/llvm * remove the giant commented out block of code * update port-version * hopefully fix the port? There are still some issues, namely that the python scripts and DLLs that are copied into `tools/llvm` are not considered to be "installed by llvm", and thus are not removed when llvm is removed * format! * apparently REGEX REPLACE fails if a thing doesn't match * fix LLVM_REMOVE_EXTENSION_REGEX on windows * actually read the cmake regex docs... * fix the name of the variable * turns out CMAKE_MATCH_1 is the one I want * need to update VERSION for new policy * stop removing debug/bin * fix faulty merge
10 lines
332 B
CMake
10 lines
332 B
CMake
set(LLVM_EXECUTABLE_REGEX [[^([^.]*|[^.]*\.lld)\.exe$]])
|
|
foreach(el "bugpoint.exe" "ld.lld.exe" "asdf.dll" "asdf")
|
|
message(STATUS "Matching ${el}")
|
|
if(el MATCHES "${LLVM_EXECUTABLE_REGEX}")
|
|
message(STATUS "Matching ${el} - match (${CMAKE_MATCH_1}).")
|
|
else()
|
|
message(STATUS "Matching ${el} - no match.")
|
|
endif()
|
|
endforeach()
|