[CMake] Install targets and component

Lars laasunde at hotmail.com
Tue Aug 11 03:05:14 EDT 2015


Hello,
 
The following cmake script appears to work but the target is associated with "Unspecified" group according to cmake_install.cmake file.
INSTALL(
  TARGETS MyLib
  RUNTIME DESTINATION "${BIN_PATH}"
  LIBRARY DESTINATION "${LIB_PATH}"
  COMPONENT COMP_APP)
 
By removing the following section the target is associated with COMP_APP as expected.
LIBRARY DESTINATION "${LIB_PATH}"
 
We are now using CMake 3.3. This worked great with CMake 2.8.12.
 
Any ideas?
 
kind regards, Lars
 
 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150811/37616f0c/attachment.html>


More information about the CMake mailing list