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

When installed, default.json is searched for in source dir #16

Open
wdconinc opened this issue Apr 25, 2024 · 0 comments
Open

When installed, default.json is searched for in source dir #16

wdconinc opened this issue Apr 25, 2024 · 0 comments

Comments

@wdconinc
Copy link

When installing with cmake --install build/ per the README.md, the default.json config is still searched for in CMAKE_SOURCE_DIR/config, which may be deleted by then.

$ cli_npc
variable NOPAYLOADCLIENT_CONF not set. Using default...
config file does not exist: /opt/spack/stage/wdconinc/spack-stage-nopayloadclient-0.0.3-a7e6k2zequnwdljdsgwtvjf3m4kc7cty/spack-src/config/default.json

Possible solution may be to treat PROJECT_CONFIG_SEARCH_PATHS in config.h.in as a colon-separate search path, and iterate over it in config.cpp.

(Related, default.json is not installed into the prefix.)

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

1 participant