Skip to content

Commit 818ec83

Browse files
committed
macOS: Declare NSHighResolutionCapable on Mapper.app
1 parent ec41eb9 commit 818ec83

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,14 @@ target_compile_definitions(Mapper PRIVATE
361361
QT_NO_CAST_TO_ASCII
362362
QT_USE_QSTRINGBUILDER
363363
)
364+
if(APPLE)
365+
add_custom_command(
366+
TARGET Mapper
367+
POST_BUILD
368+
COMMAND plutil -replace NSHighResolutionCapable -bool true
369+
$<TARGET_BUNDLE_DIR:Mapper>/Contents/Info.plist
370+
)
371+
endif()
364372

365373
install(TARGETS Mapper
366374
RUNTIME DESTINATION "${MAPPER_RUNTIME_DESTINATION}"

0 commit comments

Comments
 (0)