[CMake] compilation order dependencies,
Łukasz Tasz
lukasz at tasz.eu
Wed Aug 27 04:30:52 EDT 2014
Dear experts,
I hit the wall again with order of compilation in generated Makefiles,
Uscase:
add_library(foo ${foosources})
add_library(bar ${barsources})
add_library...
...
...
add_executable(foo_exe main.cpp)
target_link_libraries(foo_exe foo bar ... ... ...)
while libs objects will be compiled in parallel, man.cpp.o will be
compiled after linking of all libs,
If main.cpp is compiling long then this is overall additional waist of
time which could be done much earlier.
Do you have some ideas how this situation could be optimised?
with best regards
Łukasz Tasz
More information about the CMake
mailing list