diff --git a/cmake/modules/SwiftConfigureSDK.cmake b/cmake/modules/SwiftConfigureSDK.cmake index f67ef25ca945e..dcf110f609ff1 100644 --- a/cmake/modules/SwiftConfigureSDK.cmake +++ b/cmake/modules/SwiftConfigureSDK.cmake @@ -374,7 +374,7 @@ macro(configure_sdk_unix name architectures) message(FATAL_ERROR "unsupported arch for FreeBSD: ${arch}") endif() - if(CMAKE_HOST_SYSTEM_NAME NOT STREQUAL FreeBSD) + if(NOT CMAKE_HOST_SYSTEM_NAME STREQUAL FreeBSD) message(WARNING "CMAKE_SYSTEM_VERSION will not match target") endif()