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

Setting CMAKE_PREFIX_PATH #250

Open
jeanlucf22 opened this issue Feb 28, 2023 · 3 comments
Open

Setting CMAKE_PREFIX_PATH #250

jeanlucf22 opened this issue Feb 28, 2023 · 3 comments

Comments

@jeanlucf22
Copy link
Collaborator

In build.sh, we have:

${CMAKE:=cmake} .. \
    -DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" \
    ${CMAKE_PREFIX_PATH:+-DCMAKE_PREFIX_PATH="${CMAKE_PREFIX_PATH}"} \

...

I don't understand how it is supposed to work. Are we trying to append something to CMAKE_PREFIX_PATH? It actually doe not work for me on Summit at OLCF. I set

export CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH:=$BML_LIB}

but then, when I run cmake and printing out the value of CMAKE_PREFIX_PATH, I get:

CMAKE_PREFIX_PATH: /sw/summit/spack-envs/base/opt/linux-rhel8-ppc64le/gcc-9.1.0/spectrum-mpi-10.4.0.3-20210112-6jbupg3thjwhsabgevk6xmwhd2bbyxdc:/sw/summit/spack-envs/base/opt/linux-rhel8-ppc64le/gcc-8.3.1/cmake-3.23.2-jwqghrfxvfhuozlioasit4bvncwg5yff:/sw/summit/spack-envs/base/opt/linux-rhel8-ppc64le/gcc-8.3.1/darshan-runtime-3.4.0-kjycgqekqo72q2f4xzrpwcnb6j4kl4ed

instead of the value of BML_LIB

@jeanlucf22
Copy link
Collaborator Author

@nicolasbock Any comments? It looks like you wrote that part.

@jeanlucf22
Copy link
Collaborator Author

@junghans any thoughts about this? we have this kind of syntax all over PROGRESS and BML build systems, and I am wondering if anyone knows where these come from...

@junghans
Copy link
Member

Try export CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}:${BML_LIB}

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

2 participants