same lib in various versions: multiple entry into same source_dir
Hi,
I wish to build the source of a particular lib multiple times with different flags.
So I need to enter the source-dir multiple times.
Possible with:
- a different binary-directory each time
- a different target name each time
Right?
Example:
set(suffix "_upper")
#...
add_subdirectory(banner banner${suffix}) # contains target banner${suffix} -> banner_upper
set(suffix "_lower")
#...
add_subdirectory(banner banner${suffix}) # contains target banner${suffix} -> banner_lower
Example: https://github.com/user706/cmake_multiple_entry_into_source_dir
Is there any other way of doing it?
Thanks.