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

Suggestion: change CMakeLists.txt to build on MacOS 10.5 #34

Open
Betonmischer86 opened this issue May 22, 2024 · 0 comments
Open

Suggestion: change CMakeLists.txt to build on MacOS 10.5 #34

Betonmischer86 opened this issue May 22, 2024 · 0 comments

Comments

@Betonmischer86
Copy link

Betonmischer86 commented May 22, 2024

Building Lost Mission on a PowerPC Mac (MacOS 10.5) failed with the following errors:

cc1plus: error: unrecognized command line option "-ffp-contract=off"
cc1plus: error: unrecognized command line option "-Wno-strict-overflow"

The first one I fixed following advice on the same issue with Dhewm3 by changing "add_compile_options(-ffp-contract=off)" in CMakeLists.txt to:

CHECK_CXX_COMPILER_FLAG("-ffp-contract=off" cxx_has_fp-contract)
if(cxx_has_fp-contract)
add_compile_options(-ffp-contract=off)
endif()

I also replaced "add_compile_options(-Wno-strict-overflow)" with:

CHECK_CXX_COMPILER_FLAG("-Wno-strict-overflow" cxx_has_Wno-strict-overflow)
if(cxx_has_Wno-strict-overflow)
add_compile_options(-Wno-strict-overflow)
endif()

Now I'm able to build d3le.dylib and run the mod.

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

No branches or pull requests

1 participant