You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running Cmake 3.16 and trying to use the find_package way linking the json-fortran results in:
[cmake] CMake Error at build/json-fortran/jsonfortran-intel-config.cmake:19 (include):
[cmake] The file
[cmake]
[cmake] my-project-dir/build/json-fortran/jsonfortran-intel-targets.cmake
[cmake]
[cmake] was generated by the export() command. It may not be used as the argument
[cmake] to the include() command. Use ALIAS targets instead to refer to targets by
[cmake] alternative names.
I am running Cmake 3.16 and trying to use the
find_package
way linking the json-fortran results in:Here's what I'm doing:
The workaround is to add the following to the CMakeLists.txt
cmake_policy(SET CMP0024 OLD)
referencing https://cmake.org/cmake/help/v3.17/policy/CMP0024.html#policy:CMP0024
However, as it warns, this is a deprecated feature.
The text was updated successfully, but these errors were encountered: