Re: [CMake] CMake link order

2019-10-18 Thread Juan Sanchez
Hello, I have always used all of the libraries at once to the TARGET_LINK_LIBRARIES command. In the following example, the link line order appears the same as the libraries are listed on the line. TARGET_LINK_LIBRARIES(devsim_tcl ${LIBRARIES} ${TCL_ARCHIVE} ${SUPERLU_ARCHIVE} ${BLAS_ARCHIVE}

Re: [CMake] CMake link order

2019-10-18 Thread Andreas Naumann
Hey all, I face a similar problem when constructing a correct (and predictable) link order for Linux and Cygwin. It would be of great help, if there is some documentation. In particular, I would raise two question     1) when does the link order change?     2) when does a clean up happen and in

Re: [CMake] CMake link order

2019-10-18 Thread Fred Baksik
On Fri, Oct 18, 2019, at 11:55 AM, Fred Baksik wrote: > > In target_link_libraries it states that "The library dependency graph is > normally acyclic (a DAG)". I recall from my own experience that the DAG is > not always created the same way when generating the project. It has to do > with

Re: [CMake] CMake link order

2019-10-18 Thread Fred Baksik
On Fri, Oct 18, 2019, at 6:24 AM, Bon, William wrote: > Hello, > > we are facing an issue while using cmake and we have no idea how to solve or > debug it. > We have a complex and huge project (about 50 subdirectories and dependencies > everywhere), and we are facing issue regarding the link

[CMake] CMake link order

2019-10-18 Thread Bon, William
Hello, we are facing an issue while using cmake and we have no idea how to solve or debug it. We have a complex and huge project (about 50 subdirectories and dependencies everywhere), and we are facing issue regarding the link order. There is a lot of dependencies between those projects, and to