Skip to content

Set directories on macOS in CMake build script#50594

Merged
ZhilkinSerg merged 1 commit intoCleverRaven:masterfrom
BrettDong:cmake
Aug 8, 2021
Merged

Set directories on macOS in CMake build script#50594
ZhilkinSerg merged 1 commit intoCleverRaven:masterfrom
BrettDong:cmake

Conversation

@BrettDong
Copy link
Copy Markdown
Member

Summary

Build "Set directories on macOS in CMake build script"

Purpose of change

After #50581 was merged, I get

CMake Error at lang/CMakeLists.txt:89 (install):
  install DIRECTORY given no DESTINATION!

because directories including ${LOCALE_DIR}, ${DATA_PREFIX} are not set on macOS. They are only assigned on Linux, FreeBSD or Windows.

Describe the solution

Set those directories the same way as on Linux and FreeBSD, so CMake configuration can finish successfully on macOS.

Describe alternatives you've considered

A Cataclysm.app bundle makes more sense for macOS, but I don't have time to implement it in CMake.

Testing

CMake configuration can finish successfully on macOS.

Additional context

@BrettDong BrettDong added <Bugfix> This is a fix for a bug (or closes open issue) Code: Build Issues regarding different builds and build environments OS: macOS Issues related to macOS / OSX operating system labels Aug 8, 2021
@actual-nh actual-nh added the (P2 - High) High priority (for ex. important bugfixes) label Aug 8, 2021
@ZhilkinSerg ZhilkinSerg merged commit d789bf0 into CleverRaven:master Aug 8, 2021
@BrettDong BrettDong deleted the cmake branch August 13, 2021 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

<Bugfix> This is a fix for a bug (or closes open issue) Code: Build Issues regarding different builds and build environments OS: macOS Issues related to macOS / OSX operating system (P2 - High) High priority (for ex. important bugfixes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants