We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aa2d64 commit 8b30904Copy full SHA for 8b30904
kdtree/CMakeLists.txt
@@ -29,7 +29,8 @@ set(impl_incs
29
)
30
31
set(LIB_NAME "pcl_${SUBSYS_NAME}")
32
-if(FLANN_FOUND)
+# PCL_ADD_LIBRARY will create an INTERFACE library if no sources are added and a normal library if sources are present.
33
+if((NOT PCL_NO_PRECOMPILE) AND FLANN_FOUND)
34
PCL_ADD_LIBRARY(${LIB_NAME} COMPONENT ${SUBSYS_NAME} SOURCES ${srcs} ${incs} ${impl_incs})
35
target_link_libraries("${LIB_NAME}" pcl_common FLANN::FLANN)
36
set(EXT_DEPS flann)
0 commit comments