ADIOS2
ADIOS2 copied to clipboard
cmake: check if adios2 install has SST enabled?
Hello,
My app is linking against ADIOS2 via CMake and I'd like enable an additional test if SST was enabled in the ADIOS2 install. Is there a CMake one liner to check if an ADIOS2 install had SST enabled?
My initial search didn't find an exposed cmake variable defined from find_package(ADIOS2 CONFIG ...)and, from what I can tell, SST isn't a component that can be listed in the find_package call. The closest thing I could find, but have not successfully tried, is checking for the added EVPath dependency (workstation build) or the existence of the bin/sst_conn_tool binary... but those are not great solutions.
Thanks in advance.
@vicentebolea , do you want to take a crack at this in Chuck's absence? Defining SST as a component that find_package would see makes a lot of sense, but I'm not sure how to go about it... (An alternative, testing to see if ADIOS2_HAVE_SST is defined in ADIOSConfig.h isn't a whole lot better than checking for something like the sst_conn_tool binary...)
@eisenhauer I am happy to take this challenge.
- As per testing if
ADIOS2_HAVE_SSTin CMAKE, ADIOS2 sets the value ofADIOS_HAVE_SSTin theadios-config.cmakewhich is read byfind_package(ADIOS2). - Components can be a great tool here for engines, ill add an exploratory task on my backlog about this.