mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 00:37:50 +08:00
23 lines
959 B
Diff
23 lines
959 B
Diff
|
diff --git a/src/cpp/CMakeLists b/src/cpp/CMakeLists.txt
|
||
|
index e6c8ae06..c15a8e90 100644
|
||
|
--- a/src/cpp/CMakeLists.txt
|
||
|
+++ b/src/cpp/CMakeLists.txt
|
||
|
@@ -35,7 +35,7 @@ if (BUILD_CUDA_LIB)
|
||
|
endif()
|
||
|
|
||
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_COMPILER_IS_GNUCC)
|
||
|
- add_library(flann_cpp SHARED "")
|
||
|
+ add_library(flann_cpp SHARED ${CPP_SOURCES})
|
||
|
set_target_properties(flann_cpp PROPERTIES LINKER_LANGUAGE CXX)
|
||
|
target_link_libraries(flann_cpp -Wl,-whole-archive flann_cpp_s -Wl,-no-whole-archive)
|
||
|
|
||
|
@@ -90,7 +90,7 @@ if (BUILD_C_BINDINGS)
|
||
|
set_property(TARGET flann_s PROPERTY COMPILE_DEFINITIONS FLANN_STATIC)
|
||
|
|
||
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_COMPILER_IS_GNUCC)
|
||
|
- add_library(flann SHARED "")
|
||
|
+ add_library(flann SHARED ${C_SOURCES})
|
||
|
set_target_properties(flann PROPERTIES LINKER_LANGUAGE CXX)
|
||
|
target_link_libraries(flann -Wl,-whole-archive flann_s -Wl,-no-whole-archive)
|
||
|
else()
|