Skip to content

Commit 1bc15d1

Browse files
committed
Use ${CMAKE_EXECUTALBE_SUFFIX} for extension of plutil on Windows
1 parent 1a30b4d commit 1bc15d1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -584,12 +584,7 @@ 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()
592587
install(PROGRAMS
593-
${CMAKE_CURRENT_BINARY_DIR}/${plutil_executable}
588+
${CMAKE_CURRENT_BINARY_DIR}/plutil${CMAKE_EXECUTABLE_SUFFIX}
594589
DESTINATION
595590
${CMAKE_INSTALL_FULL_BINDIR})

0 commit comments

Comments
 (0)