-
Notifications
You must be signed in to change notification settings - Fork 802
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
macOS Tiger platform and instructions
- Loading branch information
Showing
6 changed files
with
111 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
set(USE_SDL1 ON) | ||
set(DISABLE_ZERO_TIER ON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# MacPorts installs fmt into a versioned subdirectory | ||
if(NOT TARGET fmt::fmt) | ||
find_path(fmt_INCLUDE_DIR fmt/core.h | ||
PATHS /opt/local/include/libfmt11) | ||
mark_as_advanced(fmt_INCLUDE_DIR) | ||
|
||
find_library(fmt_LIBRARY NAMES fmt fmtd | ||
PATHS /opt/local/lib/libfmt11) | ||
mark_as_advanced(fmt_LIBRARY) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS( | ||
fmt | ||
DEFAULT_MSG | ||
fmt_LIBRARY fmt_INCLUDE_DIR) | ||
|
||
if(fmt_FOUND) | ||
set(fmt_LIBRARIES ${fmt_LIBRARY}) | ||
set(fmt_INCLUDE_DIRS ${fmt_INCLUDE_DIR}) | ||
add_library(fmt::fmt UNKNOWN IMPORTED GLOBAL) | ||
set_target_properties( | ||
fmt::fmt PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${fmt_INCLUDE_DIR}" | ||
) | ||
set_target_properties( | ||
fmt::fmt PROPERTIES | ||
IMPORTED_LINK_INTERFACE_LANGUAGES "C" | ||
IMPORTED_LOCATION "${fmt_LIBRARY}" | ||
) | ||
endif() | ||
endif() |
30 changes: 30 additions & 0 deletions
30
CMake/platforms/macports/finders/FindMacportsLegacySupport.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Provides missing functions, such as localtime_r | ||
if(NOT TARGET MacportsLegacySupport::MacportsLegacySupport) | ||
set(MacportsLegacySupport_INCLUDE_DIR /opt/local/include/LegacySupport) | ||
mark_as_advanced(MacportsLegacySupport_INCLUDE_DIR) | ||
|
||
find_library(MacportsLegacySupport_LIBRARY NAMES MacportsLegacySupport | ||
PATHS /opt/local/lib) | ||
mark_as_advanced(MacportsLegacySupport_LIBRARY) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS( | ||
MacportsLegacySupport | ||
DEFAULT_MSG | ||
MacportsLegacySupport_LIBRARY MacportsLegacySupport_INCLUDE_DIR) | ||
|
||
if(MacportsLegacySupport_FOUND) | ||
set(MacportsLegacySupport_LIBRARIES ${MacportsLegacySupport_LIBRARY}) | ||
set(MacportsLegacySupport_INCLUDE_DIRS ${MacportsLegacySupport_INCLUDE_DIR}) | ||
add_library(MacportsLegacySupport::MacportsLegacySupport UNKNOWN IMPORTED) | ||
set_target_properties( | ||
MacportsLegacySupport::MacportsLegacySupport PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${MacportsLegacySupport_INCLUDE_DIR}" | ||
) | ||
set_target_properties( | ||
MacportsLegacySupport::MacportsLegacySupport PROPERTIES | ||
IMPORTED_LINK_INTERFACE_LANGUAGES "C" | ||
IMPORTED_LOCATION "${MacportsLegacySupport_LIBRARY}" | ||
) | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters