<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px;">
<div style="color: rgb(0, 0, 0);">Hello</div>
<div style="color: rgb(0, 0, 0);"><br>
</div>
<div style="color: rgb(0, 0, 0);">I am calling find_library in a loop, using the same variable for HINTS. This variable (lib_dirs) is set using a script, and when I simply print it using message(), I obtain this output:</div>
<div style="color: rgb(0, 0, 0);"><br>
</div>
<div style="color: rgb(0, 0, 0);">message(${lib_dirs})</div>
<div style="color: rgb(0, 0, 0);"><br>
</div>
<div>
<p style="margin: 0px;">/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</p>
<p style="margin: 0px;"><br>
</p>
<p style="margin: 0px;">The variable lib_dirs is the output variable of a script that I call using execute_process(). The actual script output (in the terminal) is </p>
<p style="margin: 0px;"><br>
</p>
<p style="margin: 0px;">/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;</p>
<p style="margin: 0px;"><br>
</p>
<p style="margin: 0px;">but cmakes removes all the semicolons and puts them all together, why?</p>
<p style="margin: 0px;"><br>
</p>
<p style="margin: 0px;">Now when I call find_library() for several libraries, I can find them all except the one located in /g/g92/miguel/code/libmesh_2D/lib, why?</p>
<p style="margin: 0px;"><br>
</p>
<p style="margin: 0px;">Thanks</p>
<p style="margin: 0px;">Miguel</p>
<p style="margin: 0px;"><br>
</p>
<p style="margin: 0px; font-family: Consolas;"><br>
</p>
</div>
<br>
</body>
</html>