Skip to content

Commit 1a30b4d

Browse files
committed
Fix plutil installation failure on Windows
plutil is not installed on Windows becuase ".exe" extension is missing in CMakeLists.txt.
1 parent a3cafac commit 1a30b4d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,12 @@ install(FILES
584584
CoreFoundation/Base.subproj/module.map
585585
DESTINATION
586586
lib/swift/CoreFoundation)
587+
if(CMAKE_SYSTEM_NAME STREQUAL Windows)
588+
set(plutil_executable plutil.exe)
589+
else()
590+
set(plutil_executable plutil)
591+
endif()
587592
install(PROGRAMS
588-
${CMAKE_CURRENT_BINARY_DIR}/plutil
593+
${CMAKE_CURRENT_BINARY_DIR}/${plutil_executable}
589594
DESTINATION
590595
${CMAKE_INSTALL_FULL_BINDIR})

0 commit comments

Comments
 (0)