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:
8
cmake/Modules/UseFastBuilds.cmake
Normal file
8
cmake/Modules/UseFastBuilds.cmake
Normal 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)
|
||||
|
||||
Reference in New Issue
Block a user