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

Missing "NOT" in CMakeLists.txt #129

Open
DanielLee343 opened this issue Apr 24, 2023 · 3 comments
Open

Missing "NOT" in CMakeLists.txt #129

DanielLee343 opened this issue Apr 24, 2023 · 3 comments

Comments

@DanielLee343
Copy link

if(",${CMAKE_SOURCE_DIR}," STREQUAL ",${CMAKE_BINARY_DIR},")

According to CMake doc, CMAKE_SOURCE_DIR should be the same as CMAKE_BINARY_DIR for an in-source build. Thus, I assume the above line missed a NOT?
After I changed to this, the compile works:

if(NOT ",${CMAKE_SOURCE_DIR}," STREQUAL ",${CMAKE_BINARY_DIR},")
@en4bz
Copy link
Collaborator

en4bz commented May 1, 2023

Are you trying to create an in-source build?

@DanielLee343
Copy link
Author

So I just follow the How to build in README.md and turns out I have to add this NOT to be able to compile.

@en4bz
Copy link
Collaborator

en4bz commented May 2, 2023

Did you build in .?

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