mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 22:07:50 +08:00
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()
|