You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/cmake
Chris Burel 8acda7d04d Prefer CMake's built-in `-fPIC` and `-fpie` support
CMake has a built-in property, `POSITION_INDEPENDENT_CODE`, that determines
if code will be built with `-fPIC`. This property is `True` by default for
`SHARED` and `MODULE` library targets and `False` otherwise. Previously,
we were always passing the `-fPIC` flag manually. With this change, we set
the appropriate CMake variable that will enable the property for all
compile jobs.

Furthermore, with CMake policy CMP0083 set to "new" (which happens by
default when the `cmake_minimum_required` version is >=3.14), CMake has
built-in support for passing the `-fpie` flag when building executables. It
uses the same property, `POSITION_INDEPENDENT_CODE`, so setting this
property (and enabling it with the CMake `CheckPIESupported` module) allows
us to use CMake's built-in support for these flags.

Signed-off-by: Chris Burel <burelc@amazon.com>
4 years ago
..
3rdParty Update DXC to 1.6.2112 (+ o3de changes) (#7489) 4 years ago
Packaging Notices automation install (#6228) 4 years ago
Platform Prefer CMake's built-in `-fPIC` and `-fpie` support 4 years ago
TestImpactFramework Erase existing artifacts before generation. 4 years ago
Tools The default android platform settings refer to lumberyard #3881 (#7073) 4 years ago
install Cherry-pick of Linux deb package to stabilization (#5778) 4 years ago
3rdParty.cmake Fix issues when configuring projects and gems (#7001) 4 years ago
3rdPartyPackages.cmake Templates restricted (#6498) 4 years ago
AzAutoGen.py Removes unnecessary loop (#6684) 4 years ago
CMakeFiles.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
CommandExecution.cmake Some fixes for paths with spaces (#6757) 4 years ago
CompilerSettings.cmake Cherry-pick of Linux deb package to stabilization (#5778) 4 years ago
ConfigurationTypes.cmake Limits configuration types a project sees when using an engine SDK (#4033) 4 years ago
Configurations.cmake Fix for 'Cannot Find PThread' when using GCC (#7097) 4 years ago
Dependencies.cmake Set enable gem variants feature (#3631) 4 years ago
Deployment.cmake CMake Xcode Generator fix (#5771) 4 years ago
FileUtil.cmake Implemented Support to allow project's to reference gems via the gem name (#7109) 4 years ago
Findo3de.cmake Fix an issue with project-centric ninja builds [Linux] (#3429) 4 years ago
Gems.cmake Set enable gem variants feature (#3631) 4 years ago
GeneralSettings.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Install.cmake Fix issues when configuring projects and gems (#7001) 4 years ago
LYPackage_S3Downloader.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
LYPython.cmake [Mac] Generate O3DE SDK app bundle that can be notarized and distributed (#4150) 4 years ago
LYTestWrappers.cmake Fix issues when configuring projects and gems (#7001) 4 years ago
LYWrappers.cmake Fix issues when configuring projects and gems (#7001) 4 years ago
LyAutoGen.cmake Improves runtime dependencies input dependency (#3665) 4 years ago
LySet.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Monolithic.cmake Enables monolithic for ServerLauncher (#5883) 4 years ago
O3DEJson.cmake Some var cleanup so it shows better-organized in cmake-gui. Some vars… (#2361) 5 years ago
OutputDirectory.cmake Detects that binary dir and install prefix are not the same (#4091) 4 years ago
PAL.cmake Implemented Support to allow project's to reference gems via the gem name (#7109) 4 years ago
PALTools.cmake Templates restricted (#6498) 4 years ago
Packaging.cmake Fix issues when configuring projects and gems (#7001) 4 years ago
PackagingConfig.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Projects.cmake Implemented Support to allow project's to reference gems via the gem name (#7109) 4 years ago
RuntimeDependencies.cmake Fix issues when configuring projects and gems (#7001) 4 years ago
SettingsRegistry.cmake Detects runtime dependency cycles (#5634) 4 years ago
Subdirectories.cmake Implemented Support to allow project's to reference gems via the gem name (#7109) 4 years ago
UnitTest.cmake Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Version.cmake Force a string check on the version numbers 4 years ago
__init__.py Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
cmake_files.cmake Implemented Support to allow project's to reference gems via the gem name (#7109) 4 years ago
createplatformfiles.py Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
gemcmake.py Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
mocfix.py Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
projectcmake.py Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
reroot.py Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
waffiles2cmake.py Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
warn_fix.py Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago