... | @@ -29,5 +29,5 @@ AddDocTag(Tags::Deprecated); |
... | @@ -29,5 +29,5 @@ AddDocTag(Tags::Deprecated); |
|
## How to disable deprecated features when `OTB_USE_DEPRECATED=OFF`?
|
|
## How to disable deprecated features when `OTB_USE_DEPRECATED=OFF`?
|
|
|
|
|
|
* If you deprecate a whole module, it will be disabled during configure step.
|
|
* If you deprecate a whole module, it will be disabled during configure step.
|
|
* If you want to deprecated a C++ class and the associated tests: use variable `OTB_USE_DEPRECATED` to protect the inclusion of this class in `src/CMakeLists.txt`, `test/CMakeLists.txt`
|
|
* If you want to deprecate a C++ class and the associated tests: use variable `OTB_USE_DEPRECATED` to protect the inclusion of this class in `src/CMakeLists.txt` and `test/CMakeLists.txt`
|
|
* in otbConfigure.h, there is a macro `OTB_USE_DEPRECATED`, which is defined when CMake option `OTB_USE_DEPRECATED=ON`. Use it to disable portions of code in `test/otbXXXTestDriver.cxx` for instance |
|
* in otbConfigure.h, there is a macro `OTB_USE_DEPRECATED`, which is defined when CMake option `OTB_USE_DEPRECATED=ON`. Use it to disable portions of code in `test/otbXXXTestDriver.cxx` for instance |