From 20efbef75feb0d74a26ad367f9d7d01edde26965 Mon Sep 17 00:00:00 2001 From: MIN605472 Date: Fri, 5 Apr 2019 22:37:09 +0200 Subject: [PATCH] Fix a typo. --- src/cpp/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/CMakeLists.txt b/src/cpp/CMakeLists.txt index b30f3da0..b421abb0 100644 --- a/src/cpp/CMakeLists.txt +++ b/src/cpp/CMakeLists.txt @@ -81,7 +81,7 @@ endif() if (BUILD_C_BINDINGS) add_library(flann_s STATIC ${C_SOURCES}) - target_link_libraries(flann_cpp -Wl,--push-state,--no-as-needed ${LZ4_LIBRARIES} -Wl,--pop-state) + target_link_libraries(flann_s -Wl,--push-state,--no-as-needed ${LZ4_LIBRARIES} -Wl,--pop-state) if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG) set_target_properties(flann_s PROPERTIES COMPILE_FLAGS -fPIC) endif() @@ -93,7 +93,7 @@ if (BUILD_C_BINDINGS) target_link_libraries(flann -Wl,-whole-archive flann_s -Wl,-no-whole-archive) else() add_library(flann SHARED ${C_SOURCES}) - target_link_libraries(flann_cpp -Wl,--push-state,--no-as-needed ${LZ4_LIBRARIES} -Wl,--pop-state) + target_link_libraries(flann -Wl,--push-state,--no-as-needed ${LZ4_LIBRARIES} -Wl,--pop-state) if(MINGW AND OPENMP_FOUND) target_link_libraries(flann gomp)