Combined find_package/add_subdirectory not linking libraries #1771
Labels
kind: question
state: stale
the issue has not been updated in a while and will be closed automatically soon unless it is updated
Describe what you want to achieve.
I'm trying to follow the CMake example of Supporting Both.
Describe what you tried.
The external example works as expected. Unfortunately, the former encounters a namespace error. With
extern/CMakeLists.txt
and
CMakeLists.txt
:I get an error:
However, when removing the namespace:
Configure throws no error, but now build cannot find the header.
Describe which system (OS, compiler) you are using.
macOS 10.14.6
CMake 3.14.5
Homebrew
Describe which version of the library you are using.
nlohmann_json
The text was updated successfully, but these errors were encountered: