Skip to content

Commit

Permalink
feat(build): Support defining UA_LOGLEVEL in an external CMakefile (o…
Browse files Browse the repository at this point in the history
…pen62541#6068)

Allows to compile the library as a amalgamated, and then change the UA_LOGLEVEL in the CMakefile of the project that's using the amalgamated files.
  • Loading branch information
bisbastuner authored Oct 19, 2023
1 parent 77e703a commit 743ee1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/open62541/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
* ---------------
* Changing the feature options has no effect on a pre-compiled library. */

#ifndef UA_LOGLEVEL
#define UA_LOGLEVEL ${UA_LOGLEVEL}
#endif
#ifndef UA_ENABLE_AMALGAMATION
#cmakedefine UA_ENABLE_AMALGAMATION
#endif
Expand Down

0 comments on commit 743ee1b

Please sign in to comment.