1) Is there some sort of rather low upper limit on the length of the per-project header search path, either in the CMake VS generator or in VS?<br><br>Test CMakeLists.txt:<br>====begin file====<br>PROJECT(test CXX)<br>INCLUDE_DIRECTORIES(C:\Windows\System32 C:\Windows\System32\Wbem C:\Documents and Settings\All Users\Desktop C:\Documents and Settings\All Users\Start Menu C:\Windows C:\ C:\Documents and Settings\All Users\Application Data C:\Documents and Settings\All Users C:\Documents and Settings . .. C:\Program Files C:\Program Files\Microsoft Visual Studio 2008 C:\Windows\System32\WinSxS C:\Windows\System C:\Documents and Settings\All Users\Favorites ..\..)<br>
ADD_EXECUTABLE(hello hello.cpp)<br>====end file====<br>and the hello.cpp is just a Hello World program:<br>====begin file====<br>#include &lt;iostream&gt;<br><br>int main()<br>{<br>  std::cout &lt;&lt; &quot;Hello, world!&quot; &lt;&lt; std::endl;<br>
  return 0;<br>}<br>====end file====<br><br>2) I have the location of a library XXX in its XXX_LIBRARIES variable.  I need to find a library YYY that is often found together with XXX (in the same place, and they are closely related libraries).  What sort of CMake code do I need to write to extract the path to XXX from the XXX_LIBRARIES variable so I can pass it in the HINTS when I do a find_library for YYY, or can I simply feed find_library XXX_LIBRARIES in its HINTS and have it work out OK?<br>
<br>--Lucas<br>