@ -565,20 +565,22 @@ function(ocv_install_target)
# message ( STATUS "Process ${__target} dst=${__dst}..." )
if ( DEFINED __dst )
if ( CMAKE_VERSION VERSION_LESS 2.8.12 )
# I f C M a k e v e r s i o n i s > = 3 . 1 . 0 o r < 2 . 8 . 1 2 .
if ( NOT CMAKE_VERSION VERSION_LESS 3.1.0 OR CMAKE_VERSION VERSION_LESS 2.8.12 )
get_target_property ( fname ${ __target } LOCATION_DEBUG )
if ( fname MATCHES "\\.lib$" )
string ( REGEX REPLACE "\\.lib$" ".pdb" fname "${fname}" )
install ( FILES ${ fname } DESTINATION ${ __dst } CONFIGURATIONS Debug )
install ( FILES "${fname}" DESTINATION "${__dst}" CONFIGURATIONS Debug )
endif ( )
get_target_property ( fname ${ __target } LOCATION_RELEASE )
if ( fname MATCHES "\\.lib$" )
string ( REGEX REPLACE "\\.lib$" ".pdb" fname "${fname}" )
install ( FILES ${ fname } DESTINATION ${ __dst } CONFIGURATIONS Release )
install ( FILES "${fname}" DESTINATION "${__dst}" CONFIGURATIONS Release )
endif ( )
else ( )
# C M a k e 2 . 8 . 1 2 b r o k e s P D B s u p p o r t i n S T A T I C l i b r a r i e s f o r M S V S
# C M a k e 2 . 8 . 1 2 b r o k e P D B s u p p o r t f o r S T A T I C l i b r a r i e s f r o m M S V S , f i x w a s i n t r o d u c e d i n C M a k e 3 . 1 . 0 .
message ( WARNING "PDB's are not supported from this version of CMake, use CMake version later then 3.1.0 or before 2.8.12." )
endif ( )
endif ( )
endif ( )