Add compiler options that may make the builds faster

Sometimes compiler options can help doing faster builds; for GCC the
pipe option will help interleave the various stages of the build.
This commit is contained in:
Roland Kaufmann
2012-12-07 10:14:10 +01:00
parent 0b4a244a44
commit fc3941d982
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
# - Try to build faster depending on the compiler
# faster builds by using a pipe instead of temp files
include (AddOptions)
if (CMAKE_COMPILER_IS_GNUCXX)
add_options (ALL_LANGUAGES ALL_BUILDS "-pipe")
endif (CMAKE_COMPILER_IS_GNUCXX)