Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs issue: Dynamic Dispatch Example + CMake #144

Open
Wheest opened this issue Feb 4, 2020 · 1 comment
Open

Docs issue: Dynamic Dispatch Example + CMake #144

Wheest opened this issue Feb 4, 2020 · 1 comment

Comments

@Wheest
Copy link

Wheest commented Feb 4, 2020

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.

@chohner
Copy link

chohner commented May 6, 2020

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

Wheest/libsimdpp_cmake_mwe#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants