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 tweaks #110

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

joankaradimov
Copy link
Contributor

@joankaradimov joankaradimov commented Mar 15, 2022

This introduces three tweaks to CMakeLists.txt:

  • It fixes a problem in the resource compiler in MSVC caused by the add_compile_options ("-W4") option.
  • A linker error when TESTSUITE is disabled
  • It allows for a build that does not include the examples

Each is in a separate commit. Each commit has some more details in its description.

Use `add_compile_options ("-W4")` instead of `add_definitions ("-W4")` since
the latter passes a `-W4` argument to `rc.exe` which results in this error:

  fatal error RC1106: invalid option: -4

The same is done for non-MSVC compilers for consistency and to avoid similar
problems.
This avoids the following linker error:

unresolved external symbol _MemoryModuleTestsuite referenced in function _main
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.

1 participant