Skip to content

Commit 827c6ab

Browse files
committed
Fix the check for empty string in CMakeLists.txt.
1 parent 4a3a6fc commit 827c6ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libcxx/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ set(LIBCXX_ASSERTION_SEMANTIC "" CACHE STRING
7474
mode in effect. Note that users can override this setting in their own code.
7575
This does not affect the ABI. Supported values are
7676
${LIBCXX_SUPPORTED_ASSERTION_SEMANTICS}.")
77-
if ("${LIBCXX_ASSERTION_SEMANTIC}" AND NOT "${LIBCXX_ASSERTION_SEMANTIC}" IN_LIST LIBCXX_SUPPORTED_ASSERTION_SEMANTICS)
77+
78+
if (NOT "${LIBCXX_ASSERTION_SEMANTIC}" STREQUAL "" AND NOT "${LIBCXX_ASSERTION_SEMANTIC}" IN_LIST LIBCXX_SUPPORTED_ASSERTION_SEMANTICS)
7879
message(FATAL_ERROR
7980
"Unsupported assertion semantic: '${LIBCXX_ASSERTION_SEMANTIC}'. Supported values are ${LIBCXX_SUPPORTED_ASSERTION_SEMANTICS}.")
8081
endif()

0 commit comments

Comments
 (0)