[CMake] Finding all the libraries except for one located in the last path dir

Nils Gladitz nilsgladitz at gmail.com
Tue Apr 5 17:44:55 EDT 2016


On 05.04.2016 23:31, Salazar De Troya, Miguel wrote:
>
>
> with no line break, whereas the output variable lib_dirs:
>
> message(${lib_dirs})
>
>
> /usr/lib/lib/usr/lib64/usr/local/tools/vtk-6.1.0/lib/g/g92/miguel/petsc-3.6.2/miguel-opt/lib/usr/local/tools/openmpi-intel-1.8.4/lib/usr/local/tools/ic-14.0.174/composer_xe_2013_sp1.3.174/compiler/lib/intel64/usr/lib/gcc/x86_64-redhat-linux/4.4.7/g/g92/miguel/code/libmesh_2D/lib
>
>
> does have a line break and also the semicolons are removed. What’s 
> happening here and how can I get rid of that?
>

message() concatenates its (semicolon separated) arguments.

try:
message("${lib_dirs}")

Note the quotes.

Nils


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160405/79df04a5/attachment.html>


More information about the CMake mailing list