<div dir="ltr">Hi,<div><br></div><div>OK, unless the answer to the question in the subject line should be "NO", then please disregard this email. I think I was having a caching issue with my super build setup. I'm pretty sure that transitive includes are being correctly propagated now.</div><div><br></div><div>Sorry for the noise,</div><div>Zaak</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 27, 2018 at 4:47 PM Zaak Beekman <<a href="mailto:zbeekman@gmail.com">zbeekman@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm trying to use a superbuild to tightly control third party libraries for an application. They will all be statically linked in the end (besides deps like MPI that are effective system libraries). I have the following code in the TPL's CMakeLists.txt that I am trying to link into the main application:<div><br></div><div>```cmake</div><div><div># Make VTKmofo static library</div><div>add_library(vtkmofo STATIC ${VTKmofo_sources})</div><div><br></div><div># Tell CMake where to put vtkmofo .mod files generated with libvtkmofo</div><div>set_property(TARGET vtkmofo</div><div>  PROPERTY</div><div>  Fortran_MODULE_DIRECTORY ${VTKmofo_mod_dir})</div><div><br></div><div># Tell consumers where to find .mod files</div><div>target_include_directories(vtkmofo PUBLIC</div><div>  $<BUILD_INTERFACE:${VTKmofo_mod_dir}></div><div>  $<INSTALL_INTERFACE:include/vtkmofo/mod></div><div>  )</div><div><br></div><div>install(TARGETS vtkmofo DESTINATION lib EXPORT vtkmofo-targets)</div><div>install(EXPORT vtkmofo-targets DESTINATION lib/vtkmofo)</div><div>install(DIRECTORY "${VTKmofo_mod_dir}" DESTINATION include/vtkmofo) # i.e., include/vtkmofo/mod/*.mod</div></div><div>```</div><div><br></div><div>In the other main project I have:</div><div><br></div><div>```cmake</div><div>include("${VTKmofo_ROOT}/lib/vtkmofo/vtkmofo-targets.cmake")<br></div><div>...</div><div>target_link_libraries(FrapUtility PUBLIC Math MatLib vars ECI Coolant vtkmofo)<br></div><div>```</div><div><br></div><div>Through transitive properties I would expect that the sources for FrapUtility (all modern Fortran sources) would get the `-I.../include/vtkmofo/mod` flag passed during compilation. Am I missing something?</div><div><br></div><div><br></div><div>Thanks,</div><div>Zaak</div><div><br></div><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Izaak "Zaak" Beekman<br><br>------------------------------------------------------------------------------- <br>HPC Scientist<br><a href="http://www.paratools.com/" target="_blank">ParaTools Inc.</a><div dir="ltr">1509 16th St, NW</div><div dir="ltr">Washington, DC 20036</div>mobile: <a href="tel:(917)%20797-3239" value="+19177973239" target="_blank">(917) 797-3239</a><br>-------------------------------------------------------------------------------</div></div></div></div></div>
</blockquote></div>