diff --git a/CMakeLists.txt b/CMakeLists.txt index 9385c72..0b73732 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -196,7 +196,11 @@ alta_add_plugin(data_brdf_slice data_io/slice.cpp) alta_add_plugin(data_grid data_interpolants/grid.cpp) if(FLANN_FOUND) alta_add_plugin(data_rbf data_interpolants/rbf.cpp) - target_link_libraries(data_rbf "C:/Program Files/flann/lib/flann_cpp_s.lib" ) + if(WIN32) + target_link_libraries(data_rbf "C:/Program Files/flann/lib/flann_cpp_s.lib" ) + else() + target_link_libraries(data_rbf ${FLANN_LIBRARIES} ) + endif() target_include_directories(data_rbf PUBLIC ${FLANN_INCLUDE_DIRS} ) endif() #alta_add_plugin(data_matlab data_interpolants/matlab.cpp)