Is there a good cross-platform way to enable C99 in a CMake project right now?
You can obviously do this:
set(CMAKE_C_FLAGS "-std=c99")
However, that's the GNU way to enable C99, and other compilers do it
differently. It would be nice if there were some flags for this set for you in
whatever platform file you're using, e.g.:
set(CMAKE_C_FLAGS "${CMAKE_ENABLE_C99}")
Or something to that effect. Then you'd pick up -qlanglvl=c99 for xlc,
-std=c99 for gcc, etc.
Is there anything similar already in there? I don't see anything grepping
around in the modules or platform files.
-Todd
______________________________________________________________________
Todd Gamblin, [email protected], http://people.llnl.gov/gamblin2
CASC @ Lawrence Livermore National Laboratory, Livermore, CA, USA
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake