-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Required same version of nlohmann_json in dependencies
- Loading branch information
1 parent
631b7c2
commit f8fd348
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,9 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR};${CMAKE_MODULE_PATH}") | |
|
||
include(CMakeFindDependencyMacro) | ||
find_dependency(xtl @xtl_REQUIRED_VERSION@) | ||
find_dependency(nlohmann_json @nlohmann_json_REQUIRED_VERSION@) | ||
# nlohmann_json requires libraries that exchange json objects to be linked | ||
# with the same version of nlohmann_json. | ||
find_dependency(nlohmann_json @nlohmann_json_REQUIRED_VERSION@ EXACT) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
JohanMabille
Author
Member
|
||
|
||
# This is required when linking with the static target | ||
if(NOT EMSCRIPTEN) | ||
|
I believe that this line is dangerous. In this way, one always demands the exact version 3.11 of nlohmann_json (the variable nlohmann_json_REQUIRED_VERSION is hardcoded to "3.11"), and not the one that is actually being used (which is AT LEAST 3.11, but not necessarily exactly 3.11). See for example the problem reported here: jupyter-xeus/xeus-zmq#39
edit: I just saw that this has already been fixed in the following commit: 2047292