That does help a lot, but I think does not go quite far enough.
As I said, there are other things that need to be done such as:
- Adjusting warning levels (CMAKE_WARN_LEVEL=(None|Full|Standard) )
- Forcing a 32-bit or 64-bit compile
- Allowing for platform-specific builds if possible (ie. don't ma
Hey,
Is there a module out there that will supply pre-defined flags for
different compilers?
I made a start on one, but I can't believe I am the first, but a snippet
of what I have been making:
if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
SET(C_WARN_DEF "-W")
SET(C_WARN_FULL "-W -Wall -Wsh