-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added preprocessor definition via cmake STRING #185
Conversation
Ok, it seems to be working nice. The only thing is the output is a bit distorted, how the DEBUG statement works? Perhaps its behaviour is related to the cmake version?
|
https://cmake.org/cmake/help/latest/command/message.html In my cmake version it works fine, I guess this did not exist in your cmake version and thats why it concatenates the strings. DEBUG messages are intended for developers and not users, in my opinion they are a middle ground between STATUS messages and comments, you can change the DEBUG to STATUS to display the mesage easier than to change it from a comment to a message. There are many small problems similar to this that can happen due to allowing users to use very old cmake versions, we should change the minimum cmake version but its not possible yet because of #162, I couldn't fix it. I encourage anyone @rest-for-physics/core_dev to try to fix this issue as I think its a bit critical. |
I woudnt mind that the DEBUG statement is in STATUS statement. Anyway a non-developer user will not look most of the information coming out from cmake. |
Related to https://rest-forum.unizar.es/t/detectorlib-implementation-problem-inside-the-rawlib-process/535/5
Adding definitions via CMake which appear only when corresponding libraries are selected to compile. This is useful when we want to have code in one library that uses another library that may or may not be available.
I tried to look for where this was being defined previously in the code but didn't find it (for any library) I guess it was removed at some point and never cause problems.