Skip to content

Commit d5bbd8a

Browse files
committed
Improve parallel compilation
We observed many warnings about serial compilations of e.g. LTRANS jobs, which is fixed hereby.
1 parent 9103451 commit d5bbd8a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
8181
# Enable folders for IDEs
8282
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
8383

84+
# Enable LTO (link time optimization) for the project
85+
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
86+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flto=auto")
87+
8488
# ---------------------------------------------------
8589
# Other configuration options
8690
# ---------------------------------------------------

0 commit comments

Comments
 (0)