Skip to content

Commit c75dbed

Browse files
committed
[CMake] Allow custom CMAKE_BUILD_TYPEs
Fixes #60975 Reviewed By: bogner Differential Revision: https://reviews.llvm.org/D144835
1 parent 470fd9c commit c75dbed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
388388

389389
if (CMAKE_BUILD_TYPE AND
390390
NOT uppercase_CMAKE_BUILD_TYPE MATCHES "^(DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL)$")
391-
message(FATAL_ERROR "Invalid value for CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
391+
message(WARNING "Unknown value for CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
392392
endif()
393393

394394
# LLVM_INSTALL_PACKAGE_DIR needs to be declared prior to adding the tools

0 commit comments

Comments
 (0)