Modern C++ configure files? #4789
Closed
paulross80
started this conversation in
Ideas
Replies: 4 comments 1 reply
-
I have tried to do this:
but the result is this:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
you need to add ${define X_DEBUG}
namespace x
{
constexpr static bool debug_mode =
#ifdef X_DEBUG
true;
#else
false;
#endif
} https://xmake.io/#/manual/project_target?id=targetset_configvar |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Everything is perfect. Thank you!
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I would like to create a more modern C++ configure file
My config.hpp.in file:
But the generated config.hpp file ends up like this:
My project code:
Beta Was this translation helpful? Give feedback.
All reactions