Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants