I downloaded lib and copied it to my project directory. My CMakeLists.txt : ```cmake cmake_minimum_required(VERSION 3.6) add_subdirectory(cpu_features) add_library( myLib SHARED app/src/main/cpp/test.cpp ) link_libraries(myLib cpu_features) ``` My test.cpp file: ```cpp #include "test.h" #include <cpu-features.h> ``` I have `10: fatal error: 'cpu-features.h' file not found` error. Please tell me what I'm doing wrong. Thanks.
Activity
Mizux commentedon Feb 5, 2020
there is no
cpu-features.hsee https://github.com/google/cpu_features/tree/master/includenote: You should use
target_link_libraries()IMHOCMake: Add missing alias for cpu_feature
leshchenko commentedon Feb 5, 2020
@Mizux Thanks for the quick reply. Could you please help me in case I want to use
cpu-features.hfrom https://github.com/google/cpu_features/tree/master/ndk_compat ?Mizux commentedon Feb 5, 2020
in this cas e you should have something like this I guess (not tested):
CMake: Add missing alias for cpu_feature (#107)
gchatelet commentedon Sep 21, 2020
@leshchenkoEk can you confirm that it works now?
Fix ndk-compat include directory (Fix google#106)
Mizux commentedon Sep 21, 2020
Should be fixed by my patch see the comment in the PR...
Fix ndk-compat include directory (Fix google#106) (google#130)