libsimdpp icon indicating copy to clipboard operation
libsimdpp copied to clipboard

Docs issue: Dynamic Dispatch Example + CMake

Open Wheest opened this issue 5 years ago • 1 comments

The dynamic dispatch example, as described in documentation seems to work using the Makefile approach.

However, with a CMake file, using the appropriate CMake module, the build fails with error:

main.cpp:(.text+0x5): undefined reference to print_arch()'

I've made a barebones repository that implements only the dynamic dispatch built with CMake.

It is available here.

The CMake documentation was generated in 2013, so it's possible that it is no longer appropriate for the current version of the project.

Any pointers on getting this working for CMake? It would really help me with integrating into my projects.

Wheest avatar Feb 04 '20 16:02 Wheest

Added a PR to your repo that works on my machine and on CI:

https://github.com/Wheest/libsimdpp_cmake_mwe/pull/1

chohner avatar May 06 '20 15:05 chohner