File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -224,13 +224,15 @@ function(PCL_ADD_LIBRARY _name)
224
224
endif ()
225
225
226
226
PCL_ADD_VERSION_INFO(${_name} )
227
-
228
- set_target_properties (${_name} PROPERTIES
229
- VERSION ${PCL_VERSION}
230
- SOVERSION ${PCL_VERSION_MAJOR} .${PCL_VERSION_MINOR}
231
- DEFINE_SYMBOL "PCLAPI_EXPORTS" )
232
- set_target_properties (${_name} PROPERTIES FOLDER "Libraries" )
233
227
228
+ if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.19)
229
+ set_target_properties (${_name} PROPERTIES
230
+ VERSION ${PCL_VERSION}
231
+ SOVERSION ${PCL_VERSION_MAJOR} .${PCL_VERSION_MINOR}
232
+ DEFINE_SYMBOL "PCLAPI_EXPORTS" )
233
+
234
+ set_target_properties (${_name} PROPERTIES FOLDER "Libraries" )
235
+ endif ()
234
236
install (TARGETS ${_name}
235
237
EXPORT ${_name} Targets
236
238
RUNTIME DESTINATION ${BIN_INSTALL_DIR} COMPONENT pcl_${ARGS_COMPONENT}
You can’t perform that action at this time.
0 commit comments