Skip to content

Commit a4daa47

Browse files
committed
build: add dependency on Windows/Olson mapping plists
These are source files as far as the CoreFoundation build is concerned. Add a dependency on the files.
1 parent 75d0b59 commit a4daa47

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CoreFoundation/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,15 @@ add_framework(CoreFoundation
316316
URL.subproj/CFURLComponents.c
317317
URL.subproj/CFURLComponents_URIParser.c
318318
URL.subproj/CFURLSessionInterface.c)
319+
if(CMAKE_SYSTEM_NAME STREQUAL Windows)
320+
# NOTE(compnerd) the WindowsOlsonMapping.plist and OlsonWindowsMapping.plist
321+
# are embedded Windows resources that we use to map the Windows timezone to
322+
# the Olson name. Ensure that we rebuild on regeneration of the files.
323+
add_custom_target(CoreFoundationWindowsTimeZonesPLists DEPENDS
324+
WindowsOlsonMapping.plist
325+
OlsonWindowsMapping.plist)
326+
add_dependencies(CoreFoundation CoreFoundationWindowsTimeZonesPLists)
327+
endif()
319328
if(CMAKE_SYSTEM_NAME STREQUAL Linux OR CMAKE_SYSTEM_NAME STREQUAL Android)
320329
target_compile_definitions(CoreFoundation
321330
PRIVATE

0 commit comments

Comments
 (0)