Skip to content

Commit

Permalink
Moving WIN32 specific parts into if structure
Browse files Browse the repository at this point in the history
  • Loading branch information
belcour committed Feb 26, 2021
1 parent 211d6c4 commit de77428
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit de77428

Please sign in to comment.