You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Occasionally, I have to use CMake variables inside my C/C++ files. A canonical way to get access to these variables is to parse the file via configure_file(); however, I find it non-trivial to insert this into the existing template. What about showcasing this by, for example, returning CMAKE_PROJECT_NAME instead of hard coding the name here. Another common use case is to return the project version as a string.
The text was updated successfully, but these errors were encountered:
Occasionally, I have to use CMake variables inside my C/C++ files. A canonical way to get access to these variables is to parse the file via
configure_file()
; however, I find it non-trivial to insert this into the existing template. What about showcasing this by, for example, returningCMAKE_PROJECT_NAME
instead of hard coding the name here. Another common use case is to return the project version as a string.The text was updated successfully, but these errors were encountered: