I'm compiling version 10.00.b01 on Mac OS X 10.7 using MacPorts, but the file cmake/Modules/FindAIDA.cmake tries to call aida-config --implementation which doesn't work: aida doesn't support that particular flag. MacPorts comes with aida 3.2.1 from ftp://ftp.slac.stanford.edu/software/freehep/AIDA/v3.2.1/ My temporary workaround was the following: --- cmake/Modules/FindAIDA.cmake.orig +++ cmake/Modules/FindAIDA.cmake @@ -30,10 +30,7 @@ else() OUTPUT_VARIABLE AIDA_LIBRARIES OUTPUT_STRIP_TRAILING_WHITESPACE) - execute_process( - COMMAND ${AIDA_CONFIG_EXECUTABLE} --implementation - OUTPUT_VARIABLE AIDA_IMPLEMENTATION - OUTPUT_STRIP_TRAILING_WHITESPACE) + set(AIDA_IMPLEMENTATION "MacPorts") # Make variables changeble to the advanced user mark_as_advanced(AIDA_CONFIG_EXECUTABLE) but this needs a proper patch or some suggestion, where to get aida with support for "--implementation" flag.
Reassigning to author of FindAIDA.cmake
The FindAIDA.cmake was tested with osc_batch AIDA implementation; which supports the --implementation flag. We will put a protection in the file to behave correctly when this flag is not supported. Could you, please, let me know if the option --version, which is also used in cmake is available in your package? Thank you,
Yes, it does. > aida-config --help usage: aida-config [<options>] where the optional <options> can be one of the following: -?, -h, --help : print this text -v, --version : print version info -i, --includes : print out the list for the include directories: '-I...' -c, --cflags : presently as -i or --includes -l, --libs : print out the list for the libraries : '-L... -l.. -l.. ...' -r, --runtime : print out the list to be added to the SharedLib Path : '<path-to-shared-libs>' --platform=<platform> : use <platform> for Platform string, overrides automatic determination Now I see that aida-config actually comes from iAIDA (1.0.22), not from aida. (The author of iAIDA might be willing to add that flag if the flag is needed for some reason.)
Author of iAIDA also offered to implement that option.
Just a note: iAIDA now supports --implementation, so this issue is not as pressing any more. (I'm not sure how many different "aidas" exist though.)
I have modified FindAIDA.cmake so that it does not produce error messages in case aida-config does not support --version or --implementation options as these options are used only for printing info. If this info is not available its printing is just suppressed. This change is scheduled for the next Geant4 release.
Thank you.