Skip to content

add CMake build system #680

Closed
Closed

Description

@jeffhammond

AI is going to do this

Activity

  1. self-assigned this
    on Sep 21, 2026
  2. yapolyak commented on Oct 9, 2026

    @yapolyak
    Contributor

    Currently seems to be broken in trunk? Old build system doesn't seem to work, and with cmake I am getting:

    CMake Error at OPENMP/CMakeLists.txt:57 (add_executable):
      Cannot find source file:
    
        Branch/func.c
    
      Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
      .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
      .f95 .f03 .hip .ispc
    Call Stack (most recent call first):
      OPENMP/CMakeLists.txt:159 (prk_openmp_executable)
    
    
    CMake Error at OPENMP/CMakeLists.txt:57 (add_executable):
      No SOURCES given to target: openmp_branch
    Call Stack (most recent call first):
      OPENMP/CMakeLists.txt:159 (prk_openmp_executable)
    
  3. yapolyak commented on Oct 9, 2026

    @yapolyak
    Contributor

    Also docs don't mention cmake yet :)

  4. jeffhammond commented on Oct 9, 2026

    @jeffhammond
    MemberAuthor

    Sorry, I suppose I didn't test enough. I will work on it now.

  5. jeffhammond commented on Oct 9, 2026

    @jeffhammond
    MemberAuthor

    see #684 and let me know if it works

  6. yapolyak commented on Oct 15, 2026

    @yapolyak
    Contributor

    Thank you! It configures now but the build still failed for me on a Cray MPICH system - but I used all the defaults so might need to check configs.

  7. jeffhammond commented on Oct 15, 2026

    @jeffhammond
    MemberAuthor

    Haven't tested Cray in a while but I can do it tomorrow.

  8. jeffhammond commented on Oct 17, 2026

    @jeffhammond
    MemberAuthor

    On NAISS Arrhenius, I had to module load buildenv-gcc/2026.03-mpich to find MPI. It will be different on other Cray systems. Do you see MPI in your path as mpicc or the Cray PE wrappers cc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions