-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: explicitly use SELECTION_XML in OUTPUT_FOLDER #318
fix: explicitly use SELECTION_XML in OUTPUT_FOLDER #318
Conversation
Good catch. Thank you.
|
We could also allow both relative and absolute paths to selection file and use cmake to figure which it is, similar to https://github.com/AIDASoft/podio/blob/master/cmake/podioMacros.cmake#L29-L34. The other approach could be to change the test for existence of the selection.xml in https://github.com/AIDASoft/podio/blob/master/cmake/podioMacros.cmake#L273-L276 to something like IF (NOT EXISTS ${ARG_OUTPUT_FOLDER}/${SELECTION_XML}
AND NOT EXISTS ${SELECTION_XML})
MESSAGE(STATUS "Not adding the ROOT dictionary to the targets because the selection.xml has not been generated")
RETURN()
ENDIF() I'll let you fix this in whichever way you think best. |
After checking that `${ARG_OUTPUT_FOLDER}/${SELECTION_XML}` exists, we should not simply pass `${SELECTION_XML}` to `PODIO_GENERATE_DICTIONARY`, but pass the full path for when `${ARG_OUTPUT_FOLDER}` is not `${CMAKE_CURRENT_SOURCE_DIR}`.
1835614
to
86d03cb
Compare
Not generating the selection.xml is be a valid usecase
Thanks for the |
|
After checking that
${ARG_OUTPUT_FOLDER}/${SELECTION_XML}
exists, we should not simply pass${SELECTION_XML}
toPODIO_GENERATE_DICTIONARY
, but pass the full path for when${ARG_OUTPUT_FOLDER}
is not${CMAKE_CURRENT_SOURCE_DIR}
.BEGINRELEASENOTES
OUTPUT_FOLDER
not equal to source dir in root dictionary generation cmake macro.SELECTION_XML
can be passed either as absolute path or relative toOUTPUT_FOLDER
.ENDRELEASENOTES