You can add multiple dependencies writing
add_dependencies(main_executable lib1 lib2)
but you cannot do so writing
add_dependencies(main_executable "lib1;lib2")
- Why doesn't CMake accept the second syntax?
- Why doesn't CMake output any error?
Note that I observe this behavior using the Visual Studio 10 generator. I couldn't test it for other generators but assume CMake will behave equally.