Mercurial > hg > freeDiameter
comparison extensions/_sample/CMakeLists.txt @ 958:b415d1384e0d
Remove TRACE_LEVEL. Obsoleted by run-time support (--debug-one-file).
Ok sdecugis.
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Thu, 28 Feb 2013 11:06:31 +0100 |
parents | 34373acfbc6a |
children |
comparison
equal
deleted
inserted
replaced
957:d028fa6625e0 | 958:b415d1384e0d |
---|---|
1 # The sample extension | 1 # The sample extension |
2 PROJECT("Sample extension") | 2 PROJECT("Sample extension") |
3 | |
4 # Overwrite the debug level for the extension code if configured | |
5 OPTION(DEBUG_LEVEL__SAMPLE "Overwrite debug level for the extension _sample if defined (valid values: FULL, ANNOYING, CALL...)" OFF) | |
6 IF (DEBUG_LEVEL__SAMPLE) | |
7 ADD_DEFINITIONS(-DTRACE_LEVEL=${DEBUG_LEVEL__SAMPLE}) | |
8 ENDIF (DEBUG_LEVEL__SAMPLE) | |
9 IF (NOT CMAKE_BUILD_TYPE MATCHES "Debug") | |
10 MARK_AS_ADVANCED(DEBUG_LEVEL__SAMPLE) | |
11 ENDIF (NOT CMAKE_BUILD_TYPE MATCHES "Debug") | |
12 | 3 |
13 # Compile as a module | 4 # Compile as a module |
14 FD_ADD_EXTENSION(dbg_sample sample.c hello.cpp fini.c) | 5 FD_ADD_EXTENSION(dbg_sample sample.c hello.cpp fini.c) |
15 | 6 |
16 | 7 |