I would like the library output directory of a module to be customisable, and I have previously customised the global library output directory. When I used the following approach I found that it did not work.
set(CMAKE_ARCHIVE_OUTPU_DIRECTORY path1)
…
…
set_target_properties(target PROPERITES ARCHIVE_OUTPU_DIRECTORY path2)
The output directory of target in the generated vs project will still be path1