diff --git a/CMakeLists.txt b/CMakeLists.txt index 631f0fd..a825e2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -439,6 +439,9 @@ if (SUPPORT_CONSOLE_APP) if (MSVC) set_target_properties( ${name} PROPERTIES DEBUG_POSTFIX d ) endif () + if (APPLE) + target_link_options(${name} PRIVATE LINKER:-sectcreate,__TEXT,__info_plist,${CMAKE_CURRENT_SOURCE_DIR}/console/Info.plist) + endif () if (NOT TIDY_CONSOLE_SHARED) set_target_properties( ${name} PROPERTIES COMPILE_FLAGS "-DTIDY_STATIC" ) diff --git a/console/Info.plist b/console/Info.plist new file mode 100644 index 0000000..3f0b65b --- /dev/null +++ b/console/Info.plist @@ -0,0 +1,14 @@ + + + + + CFBundleIdentifier + org.htacg.html-tidy.tidy5 + CFBundleInfoDictionaryVersion + 6.0 + CFBundleShortVersionString + 5.6.0 + CFBundleVersion + 5.6.0 + +