Re: [CMake] Linker error with sub project's static libs

2014-08-22 Thread Olaf Peter
Hello Leif, Are your libraries mutually dependent? You may be hitting the mutually-dependent static library problem. Look for the word mutual near the end of http://www.cmake.org/cmake/help/v3.0/command/target_link_libraries.html, that section explains some of what is going on. yes it

Re: [CMake] Linker error with sub project's static libs

2014-08-22 Thread Marcel Loose
Hi Olaf, See my reply below inline. On 21/08/14 20:19, Olaf Peter wrote: Hello Marcel, Olaf, Unless your code snippets are incomplete, I'm missing the following statement in ./source/eea/ui/CMakeLists.txt target_link_libraries(eea_ui_lib eea_ui_schematic_lib) I'm not sure

Re: [CMake] Linker error with sub project's static libs

2014-08-21 Thread Olaf Peter
no idea here? It's seems to be a C++ problem, but how to solve it. Changing the order of target_link_libraries(eea eea_ui_schematic_lib eea_ui_lib to target_link_libraries(eea eea_ui_lib eea_ui_schematic_lib makes it even worser - more unresolved symbols. So what

Re: [CMake] Linker error with sub project's static libs

2014-08-21 Thread Marcel Loose
Olaf, Unless your code snippets are incomplete, I'm missing the following statement in ./source/eea/ui/CMakeLists.txt target_link_libraries(eea_ui_lib eea_ui_schematic_lib) I'm not sure this is causing the link error, but it's worth a try. Furthermore, I think the order of

Re: [CMake] Linker error with sub project's static libs

2014-08-21 Thread Olaf Peter
Hello Marcel, Olaf, Unless your code snippets are incomplete, I'm missing the following statement in ./source/eea/ui/CMakeLists.txt target_link_libraries(eea_ui_lib eea_ui_schematic_lib) I'm not sure this is causing the link error, but it's worth a try. thank you a lot, this

Re: [CMake] Linker error with sub project's static libs

2014-08-21 Thread Leif Walsh
Are your libraries mutually dependent? You may be hitting the mutually-dependent static library problem. Look for the word mutual near the end of http://www.cmake.org/cmake/help/v3.0/command/target_link_libraries.html, that section explains some of what is going on. On Thu, Aug 21, 2014 at

[CMake] Linker error with sub project's static libs

2014-08-19 Thread Olaf Peter
Hello, for my project I have the following structure in my project directory: ./CMakeLists.txt ./source/CMakeLists.txt ./source/eea/CMakeLists.txt ./source/eea/ui/CMakeLists.txt ./source/eea/ui/schematic/CMakeLists.txt with ---8--- ./CMakeLists.txt: project(eea) ... ---8---