Feature Request: Add CMAKE_DEFINE_SYMBOL to allow changing the default DEFINE_SYMBOL pattern globally
I am working on converting a project with a pre-existing build system to use CMake instead. This project / build system has a preexisting convention on what preprocessor definition to have when compiling a library, with the same semantics as the DEFINE_SYMBOL symbol. This preexisting convention is essentially
BUILDING_<library name all caps>_DLL, with
<library name all caps> being a variable substitution. This is, of course, different than the current default setting of
<library name>_EXPORTS that CMake uses.
As such, I would like to request the ability to set a global
CMAKE_DEFINE_SYMBOL variable, or
CMAKE_DEFINE_SYMBOL_PATTERN variable, with a substitution pattern that can be used to build the
DEFINE_SYMBOL for a particular library.