ADIOS2 icon indicating copy to clipboard operation
ADIOS2 copied to clipboard

cmake: check if adios2 install has SST enabled?

Open cwsmith opened this issue 3 years ago • 2 comments

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.

cwsmith avatar Jun 27 '22 14:06 cwsmith

@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 avatar Sep 07 '22 19:09 eisenhauer

@eisenhauer I am happy to take this challenge.

  • As per testing if ADIOS2_HAVE_SST in CMAKE, ADIOS2 sets the value of ADIOS_HAVE_SST in the adios-config.cmake which is read by find_package(ADIOS2).
  • Components can be a great tool here for engines, ill add an exploratory task on my backlog about this.

vicentebolea avatar Sep 07 '22 19:09 vicentebolea