> Thanks for your reply. I was thinking of something like that but was not > sure how to do it in cmake. > I mean something like "make moderate". > > Can you please tell me where should I edit so that code compilation follows > from the mode given to "make".
Doing this as a cmake target is somewhat complicated. Easier options: - just put "#define MODERATE" in your header file with the macro and comment it out if you don't need it - instead, put "ADD_DEFINITIONS("-DMODERATE")" to your cmake script (or comment it out). If you want to have a "make moderate" that toggles this define, you need to create a new variable that tracks this setting and a target "moderate" that toggles/enables it. See how we do this in ASPECT for enabling tests: https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_geodynamics_aspect_blob_master_CMakeLists.txt-23L149&d=DwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=8MrChrquRnUcalKx1yzXw8qsWYcILksWk_zaXDnfc20&s=L_VkpxtQJ0ypTXYC5UOaV1rMlEo7Hm-rF3K3d7IGE9A&e= -- Timo Heister http://www.math.clemson.edu/~heister/ -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.