Skip to content

Commit 2ca610e

Browse files
committed
build: fix variable name
1 parent 0094834 commit 2ca610e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CoreFoundation/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ if(CF_ENABLE_LIBDISPATCH)
375375
endif()
376376
endif()
377377

378-
if("${CMAKE_SIMULATE_ID}" STREQUAL "MSVC")
378+
if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
379379
target_compile_options(CoreFoundation
380380
PRIVATE
381381
$<$<COMPILE_LANGUAGE:C>:/FI${CMAKE_SOURCE_DIR}/Base.subproj/CoreFoundation_Prefix.h>)
@@ -385,7 +385,7 @@ else()
385385
$<$<COMPILE_LANGUAGE:C>:-include;${CMAKE_SOURCE_DIR}/Base.subproj/CoreFoundation_Prefix.h>)
386386
endif()
387387

388-
if("${CMAKE_SIMULATE_ID}" STREQUAL "MSVC")
388+
if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
389389
target_compile_options(CoreFoundation
390390
PRIVATE
391391
-fblocks

0 commit comments

Comments
 (0)