File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -184,13 +184,18 @@ function(PCL_ADD_LIBRARY _name)
184184 endif ()
185185
186186 if (NOT ARGS_SOURCES)
187- add_library (${_name} INTERFACE ${ARGS_INCLUDES} )
187+ if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.19)
188+ add_library (${_name} INTERFACE ${ARGS_INCLUDES} )
189+
190+ set_target_properties (${_name} PROPERTIES FOLDER "Libraries" )
191+ else ()
192+ add_library (${_name} INTERFACE )
193+ endif ()
188194
189195 target_include_directories (${_name} INTERFACE
190196 $<BUILD_INTERFACE :${CMAKE_CURRENT_SOURCE_DIR} /include >
191197 $<INSTALL_INTERFACE :${INCLUDE_INSTALL_ROOT} >
192198 )
193- set_target_properties (${_name} PROPERTIES FOLDER "Libraries" )
194199 else ()
195200 add_library (${_name} ${PCL_LIB_TYPE} ${ARGS_SOURCES} )
196201 PCL_ADD_VERSION_INFO (${_name} )
You can’t perform that action at this time.
0 commit comments