Skip to content

Commit 1d04523

Browse files
authored
Merge pull request #410 from MIN605472/bug/cmake_typo
Fix a typo.
2 parents aa40936 + 20efbef commit 1d04523

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cpp/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ endif()
8181

8282
if (BUILD_C_BINDINGS)
8383
add_library(flann_s STATIC ${C_SOURCES})
84-
target_link_libraries(flann_cpp -Wl,--push-state,--no-as-needed ${LZ4_LIBRARIES} -Wl,--pop-state)
84+
target_link_libraries(flann_s -Wl,--push-state,--no-as-needed ${LZ4_LIBRARIES} -Wl,--pop-state)
8585
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG)
8686
set_target_properties(flann_s PROPERTIES COMPILE_FLAGS -fPIC)
8787
endif()
@@ -93,7 +93,7 @@ if (BUILD_C_BINDINGS)
9393
target_link_libraries(flann -Wl,-whole-archive flann_s -Wl,-no-whole-archive)
9494
else()
9595
add_library(flann SHARED ${C_SOURCES})
96-
target_link_libraries(flann_cpp -Wl,--push-state,--no-as-needed ${LZ4_LIBRARIES} -Wl,--pop-state)
96+
target_link_libraries(flann -Wl,--push-state,--no-as-needed ${LZ4_LIBRARIES} -Wl,--pop-state)
9797

9898
if(MINGW AND OPENMP_FOUND)
9999
target_link_libraries(flann gomp)

0 commit comments

Comments
 (0)