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

CMake Error in faiss/CMakeLists.txt during run_simple_test.sh or build following README.md #1

Open
sjyouuuuug opened this issue Jun 30, 2024 · 2 comments · May be fixed by #7
Open

Comments

@sjyouuuuug
Copy link

Hello,

I encountered a problem while running run_simple_test.sh or attempting to build the project by following the instructions in README.md.

During the process, I received the following CMake error:

CMake Error in faiss/CMakeLists.txt:
  Target "faiss" INTERFACE_INCLUDE_DIRECTORIES property contains path:
  "/root/ACORN/build/_deps/nlohmann_json-src/include" which is prefixed in the build directory.

Could you please provide guidance on how to resolve this issue? Specifically, any modifications needed in the CMakeLists.txt file?

@lmccccc
Copy link

lmccccc commented Jul 23, 2024

Same error to me when running cmake at ACORN file. Waiting for a solution.

@jamjpan
Copy link

jamjpan commented Jul 30, 2024

In CMakeLists.txt: target_include_directories(faiss PUBLIC ${nlohmann_json_SOURCE_DIR}/include) change PUBLIC to PRIVATE worked for me

@csirianni csirianni linked a pull request Nov 6, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants