Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: Do not use CMAKE_LIBRARY_ARCHITECTURE for linux #215

Open
wants to merge 1 commit into
base: 4.1
Choose a base branch
from

Conversation

phcerdan
Copy link

@phcerdan phcerdan commented Nov 6, 2019

CMAKE_LIBRARY_ARCHITECTURE is engineered for Debian-derived linux,
not for other distros such as RHEL-derived, Arch, etc.

To detect compilers in GetCompilerAndPlatform, use instead
CMAKE_CXX_COMPILER_ID and CMAKE_CXX_COMPILER, as it is used
already for the windows case.

Note that the arm version is untested, so a double check with
COMPILER_ID and just COMPILER is in place.

Fixes #39

CMAKE_LIBRARY_ARCHITECTURE is engineered for Debian-derived linux,
not for other distros such as RHEL-derived, Arch, etc.

To detect compilers in GetCompilerAndPlatform, use instead
`CMAKE_CXX_COMPILER_ID` and `CMAKE_CXX_COMPILER`, as it is used
already for the `windows` case.

Note that the arm version is untested, so a double check with
COMPILER_ID and just COMPILER is in place.

Fixes NVIDIAGameWorks#39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CMake generate_projects.sh problem on Arch Linux
1 participant