In my CMake project I need to add a list of subdirectories.
- The correct way is not nice because I can not pass a list:
add_subdirectory(Helpers) add_subdirectory(Lib1) add_subdirectory(Lib2) subdirscan pass a list, but is deprecated:subdirs(Helpers Lib1 Lib2)
Is there a way to add subdirectories as a list? It seems like a common usecase.
If not: Why was it discontinued?