Re: [CMake] How do static libraries get linked in Ninja?

2017-01-05 Thread Robert Maynard
Do you mean you don't see where the static library is created or where the static library is listed on the link line for the dynamic library? On Thu, Jan 5, 2017 at 11:30 AM, Robert Dailey wrote: > I have two targets in CMake: a static library and a shared library. > The shared library specifies

Re: [CMake] Tracing ctest crash on windows

2017-01-05 Thread Aaron Boxer
Thanks, Bill and Jakob. I did what you suggested and found the problem Aaron On Thu, Jan 5, 2017 at 11:51 AM, Bill Hoffman wrote: > On 1/5/2017 9:32 AM, Jakob van Bethlehem wrote: > >> >> CTest is not some magical tool that internally runs your test or >> something like that - instead CTest jus

Re: [CMake] To include external libraries using Cmake

2017-01-05 Thread Matthew Woehlke
On 2017-01-05 05:10, aishwarya selvaraj wrote: > Thanks for feedback : > >> IF (${ARMADILLO} STREQUAL “ARMADILLO-NOTFOUND”) >> # do what you want >> ENDIF () > ​ > I tried this way of writing : > > IF (${ARMADILLO} STREQUAL "ARMADILLO-NOTFOUND") > include(ExternalProject) > ExternalProj

Re: [CMake] Tracing ctest crash on windows

2017-01-05 Thread Bill Hoffman
On 1/5/2017 9:32 AM, Jakob van Bethlehem wrote: CTest is not some magical tool that internally runs your test or something like that - instead CTest just fires up your test executable and does clever things with the output. In the same way you can just set your test project as startup-project, a

[CMake] How do static libraries get linked in Ninja?

2017-01-05 Thread Robert Dailey
I have two targets in CMake: a static library and a shared library. The shared library specifies the static library as a target link library. When I generate for Ninja, and I run: $ ninja -v During the link command for the shared library, I do not see the static library specified to g++. I do se

Re: [CMake] cpack multiple packages

2017-01-05 Thread Dvir Yitzchaki
Hi Domen. That works perfectly. This is my code if anyone’s interested: function(install_common) foreach(component ${ALL_COMPONENTS}) install(${ARGV} COMPONENT ${component}) endforeach() endfunction() where ALL_COMPONENTS is a global variable holding all components. Thanks, Dvi

Re: [CMake] Tracing ctest crash on windows

2017-01-05 Thread Jakob van Bethlehem
Hej, CTest is not some magical tool that internally runs your test or something like that - instead CTest just fires up your test executable and does clever things with the output. In the same way you can just set your test project as startup-project, and debug it like any other executable. Since

[CMake] To include external libraries using Cmake

2017-01-05 Thread aishwarya selvaraj
Thanks for feedback : > IF (${ARMADILLO} STREQUAL “ARMADILLO-NOTFOUND”) > # do what you want > ENDIF () ​ I tried this way of writing : IF (${ARMADILLO} STREQUAL "ARMADILLO-NOTFOUND") include(ExternalProject) ExternalProject_Add(armadillo URL https://github.com/lsolanka/armadillo/ar