File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed
Runtimes/Overlay/cmake/modules Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change 1
- function (generate_plist project_name project_version target )
2
- set (PLIST_INFO_PLIST "Info.plist" )
3
- set (PLIST_INFO_NAME "${project_name} " )
4
-
5
- # Underscores aren't permitted in the bundle identifier.
6
- string (REPLACE "_" "" PLIST_INFO_UTI "com.apple.dt.runtime.${PLIST_INFO_NAME} " )
7
- set (PLIST_INFO_VERSION "${project_version} " )
8
- set (PLIST_INFO_BUILD_VERSION "${project_version} " )
9
-
10
- set (PLIST_INFO_PLIST_OUT "${PLIST_INFO_PLIST} " )
11
- set (PLIST_INFO_PLIST_IN "${PROJECT_SOURCE_DIR} /${PLIST_INFO_PLIST} .in" )
12
-
13
- if (APPLE )
14
- target_link_options (${target} PRIVATE
15
- "SHELL:-Xlinker -sectcreate -Xlinker __TEXT -Xlinker __info_plist -Xlinker ${CMAKE_CURRENT_BINARY_DIR} /${PLIST_INFO_PLIST_OUT} " )
16
- endif ()
17
-
18
- configure_file (
19
- "${PLIST_INFO_PLIST_IN} "
20
- "${PLIST_INFO_PLIST_OUT} "
21
- @ONLY
22
- NEWLINE_STYLE UNIX )
23
-
24
- set_property (TARGET ${target} APPEND PROPERTY LINK_DEPENDS "${CMAKE_CURRENT_BINARY_DIR} /${PLIST_INFO_PLIST_OUT} " )
25
-
26
- # If Application Extensions are enabled, pass the linker flag marking
27
- # the dylib as safe.
28
- if (CXX_SUPPORTS_FAPPLICATION_EXTENSION AND (NOT DISABLE_APPLICATION_EXTENSION ))
29
- list (APPEND link_flags "-Wl,-application_extension" )
30
- endif ()
31
- endfunction ()
32
-
33
1
# FIXME: it appears that `CMAKE_MT` evaluates to an empty string which prevents
34
2
# the use of the variable. This aliases `MT` to `CMAKE_MT` and tries to fallback
35
3
# to known spellings for the tool.
You can’t perform that action at this time.
0 commit comments