Re: [CMake] Installing and exporting multiple configurations of the same library

2017-12-17 Thread Saad Khattak
Thank you Domen for the workaround. With the workaround I'll have to pick the correct CMake config file by directory. I was hoping for one ${LIB_NAME}Config.cmake file for all configurations. I did indeed set the postfix, however our current build requirements (since we have a mix of CMake and non

Re: [CMake] Installing and exporting multiple configurations of the same library

2017-12-16 Thread Domen Vrankar
2017-12-16 0:18 GMT+01:00 Saad Khattak : > Hi, > > I have 4 configurations (2 for Debug and 2 for Release) and I would like > to install the libraries such that they are installed in the correct > directories. > > Installing without worrying about configurations looks like this: > > install(TA

[CMake] Installing and exporting multiple configurations of the same library

2017-12-15 Thread Saad Khattak
Hi, I have 4 configurations (2 for Debug and 2 for Release) and I would like to install the libraries such that they are installed in the correct directories. Installing without worrying about configurations looks like this: install(TARGETS ${LIB_NAME} EXPORT ${LIB_NAME}Config