Previously, macros were ifdefed using the cmake option WITH_INTERNATIONAL
However, the is unnecessary as withen the functions themselves have checks for building without internationalization.
This also means that many add_definitions(-DWITH_INTERNATIONAL) are also unnecessary.
Details
Diff Detail
- Repository
- rB Blender
- Branch
- cmake-lib-blt (branched from master)
- Build Status
Buildable 20230 Build 20230: arc lint + arc unit
Event Timeline
Think the idea when this was added was that you would not even have to call those functions at all, even if they were defined as a simple return...
But agree this is just bloating the CMake files for nothing really.
blender\source\blender\windowmanager\CMakeLists.txt can be done as well, it only has one call that has the guard (BLT_lang_free) that has a guard of its own.
source/blender/editors/space_view3d/CMakeLists.txt uses it to determine a buffer size, it's a ~60 byte difference on the stack.. just always use the larger buffer...
source/creator/CMakeLists.txt can be cleaned, it's not using it at all
there may be a few others but i ran out of time tonight, will pick this up again this weekend.
- Merge branch 'master' into cmake-lib-blt
- Cleanup: Remove more instances of DWITH_INTERNATIONAL
Look at all that glorious red, well done @Aaron Carlisle (Blendify)! much appreciated !