diff --git a/cmake/macros.cmake b/cmake/macros.cmake index 920785bad..267a8afb1 100644 --- a/cmake/macros.cmake +++ b/cmake/macros.cmake @@ -96,7 +96,7 @@ if(${CMAKE_VERSION} VERSION_LESS "3.16.0") macro(CHECK_OBJC_SOURCE_COMPILES SOURCE VAR) set(PREV_REQUIRED_DEFS "${CMAKE_REQUIRED_DEFINITIONS}") set(CMAKE_REQUIRED_DEFINITIONS "-x objective-c ${PREV_REQUIRED_DEFS}") - CHECK_C_SOURCE_COMPILES(${SOURCE} ${VAR}) + CHECK_C_SOURCE_COMPILES("${SOURCE}" ${VAR}) set(CMAKE_REQUIRED_DEFINITIONS "${PREV_REQUIRED_DEFS}") endmacro() else()