mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Maybe fix regex issue
This commit is contained in:
@@ -87,11 +87,12 @@ macro(optionx variable type description)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(DEFINED ${variable}_REGEX AND NOT "^(${${variable}_REGEX})$" MATCHES "${${variable}}")
|
||||
message(FATAL_ERROR "Invalid ${${variable}_SOURCE}: ${${variable}_PREVIEW}=\"${${variable}}\", please use ${${variable}_PREVIEW}=<${${variable}_REGEX}>")
|
||||
if(DEFINED ${variable}_REGEX)
|
||||
if(NOT "^(${${variable}_REGEX})$" MATCHES "${${variable}}")
|
||||
message(FATAL_ERROR "Invalid ${${variable}_SOURCE}: ${${variable}_PREVIEW}=\"${${variable}}\", please use ${${variable}_PREVIEW}=<${${variable}_REGEX}>")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
if(NOT ${variable}_VALUE STREQUAL ${variable})
|
||||
message(STATUS "Set ${variable}: ${${variable}}")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user