Skip to content

Commit 1df993e

Browse files
Fix: Avoid recursive variable expansion
* Quote CMAKE_SYSTEM_NAME to avoid recursive variable expansion
1 parent 309dab8 commit 1df993e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.16)
66
project(googletest-distribution)
77
set(GOOGLETEST_VERSION 1.16.0)
88

9-
if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX)
9+
if(NOT CYGWIN AND NOT MSYS AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "QNX")
1010
set(CMAKE_CXX_EXTENSIONS OFF)
1111
endif()
1212

0 commit comments

Comments
 (0)