CMAKE_INSTALL_CONFIG_NAME I don't know if there's a simple flag like 'project supports multiple targets' so I have an if(MSVC) set( MULTI_TARGET) endif() .... if( MULTI_TARGET ) Install( targets ... ${CMAKE_INSTALL_CONFIG_NAME ) else() isntall( ... ${CMAKE_BUILD_TYPE} _)
On Sun, Oct 3, 2010 at 2:53 PM, Mateusz Loskot <mate...@loskot.net> wrote: > On 03/10/10 22:27, J Decker wrote: >> On Sun, Oct 3, 2010 at 10:28 AM, Mateusz Loskot <mate...@loskot.net> wrote: >>> Hi, >>> >>> I understand what the manual [1] says about LOCATION property that it is >>> more or less deprecated. Is that right? >>> >>> I'm building software (shared libraries and executables) on both, Linux >>> and Windows (using VS 2005, 2008, 2010) and I'm trying to find out what >>> would be portable way to get target output location. It is location of >>> output directory where toolset genreates .so or .dll files. >>> >>> I tried LOCATION property but it is empty (on Windows at least) >>> >>> get_target_property(MY_TARGET_LOCATION ${MY_TARGET} LOCATION) >> >> get_target_property(MY_TARGET_LOCATION ${MY_TARGET} >> LOCATION_${CMAKE_BUILD_TYPE)) ? > > It does not help. > > As I mentioned in my original post, ${CMAKE_BUILD_TYPE} is empty > when you generate Visual Studio projects. > > Best regards, > -- > Mateusz Loskot, http://mateusz.loskot.net > Charter Member of OSGeo, http://osgeo.org > Member of ACCU, http://accu.org > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake