Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake build now has support for non-relocatable builds
Although the previous build was not defining ENABLE_RELOCATION, it was treating the build as relocatable by default, setting an RPATH based on $ORIGIN and never defining PKGLIBDIR, PKGDATADIR etc in the source code. Although this works fine on Debian, the assumption that the libraries are ALWAYS available at $ORIGIN/../lib/darkradiant might not be suitable for all systems. We now expose an additional CMake option ENABLE_RELOCATION which defaults to ON; by setting this to OFF the build becomes the more usual Unix-style build with hard-coded absolute data and library paths. In addition, when making a relocatable build the expected ENABLE_RELOCATION macro is also defined in config.h.
- Loading branch information
Matthew Mott
committed
Dec 11, 2020
1 parent
b5308ac
commit b3a1f56
Showing
3 changed files
with
59 additions
and
28 deletions.
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