install(TARGETS...) failing with multiple destination directories
CMake 3.12 on Win10 using VC2017 generator.
This code should install debug and release libs to different directories
install(TARGETS paninibase triangle EXPORT paninibaseConfig CONFIGURATIONS Release DESTINATION lib/release CONFIGURATIONS Debug DESTINATION lib/debug )
However both installs actually use the second destination. Generated cmake_install script: cmake_install.cmake
The config files installed by the following command contain the same error.
install(EXPORT paninibaseConfig CONFIGURATIONS Debug Release DESTINATION cmake )
Using separate install(TARGET...) commands for debug and release creates the correct lib directories; however then the EXPORT keyword can only be used in one of them, so only one configuration gets exported.