Hello,
I am trying to port a project to CMake, but I couldn't find anyway to specify
C preprocessor defines on a per-target (or alternatively, per-source) basis.
The project is compiling the same source files multiple times with different
defines, resulting in different object code... But it
Remi Denis-Courmont wrote:
The project is compiling the same source files multiple times with different
defines, resulting in different object code... But it seems like
ADD_DEFINITIONS won't support this case.
Any solution?
You may write multiple .cpp files that #include the code.
Then
Remi Denis-Courmont wrote:
Hello,
I am trying to port a project to CMake, but I couldn't find anyway to specify
C preprocessor defines on a per-target (or alternatively, per-source) basis.
The project is compiling the same source files multiple times with different
defines, resulting in
Jan Woetzel wrote:
Remi Denis-Courmont wrote:
The project is compiling the same source files multiple times with
different
defines, resulting in different object code... But it seems like
ADD_DEFINITIONS won't support this case.
Any solution?
You may write multiple .cpp files that