summaryrefslogtreecommitdiffstats
path: root/package/libsigrokdecode/libsigrokdecode.hash
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@gmail.com>2018-04-25 23:17:49 +0200
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-04-27 22:46:23 +0200
commit0c469478f64d0ddaf72c0622a1830d855306d51c (patch)
tree03e9bee2ba8b49078968ca5db61c23717ce77cd4 /package/libsigrokdecode/libsigrokdecode.hash
parent800fb99f2702b1205f541afb9359593d8246c913 (diff)
downloadbuildroot-0c469478f64d0ddaf72c0622a1830d855306d51c.tar.gz
buildroot-0c469478f64d0ddaf72c0622a1830d855306d51c.zip
package/flann: fix build with cmake >= 3.11
CMake < 3.11 doesn't support add_library() without any source file (i.e add_library(foo SHARED)). But flann CMake use a trick that use an empty string "" as source list (i.e add_library(foo SHARED "")). This look like a bug in CMake < 3.11. With CMake >= 3.11, the new behaviour of add_library() break the existing flann CMake code. >From CMake Changelog [1]: "add_library() and add_executable() commands can now be called without any sources and will not complain as long as sources are added later via the target_sources() command." Note: flann CMake code doesn't use target_sources() since no source file are provided intentionally since the flann shared library is created by linking with the flann_cpp_s static library with this line: target_link_libraries(flann_cpp -Wl,-whole-archive flann_cpp_s -Wl,-no-whole-archive) If you try to use "add_library(flann_cpp SHARED ${CPP_SOURCES})" (as it should be normally done), the link fail due to already defined symbol. They are building the shared version using the static library "to speedup the build time" [3] This issue is already reported upstream [2] with a proposed solution. Fixes: http://autobuild.buildroot.net/results/b2f/b2febfaf8c44ce477b3e4a5b9b976fd25e8d7454 [1] https://cmake.org/cmake/help/v3.11/release/3.11.html [2] https://github.com/mariusmuja/flann/issues/369 [3] https://github.com/mariusmuja/flann/commit/0fd62b43be2fbb0b8d791ee36290791224dc030c Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Davide Viti <zinosat@tiscali.it> Cc: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/libsigrokdecode/libsigrokdecode.hash')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud