Skip to content

Commit

Permalink
add C as a language in IPPL to have the C compiler available
Browse files Browse the repository at this point in the history
  • Loading branch information
felixschurk committed Aug 29, 2023
1 parent b1b0474 commit 9407ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required (VERSION 3.1)
project (IPPL CXX)
project (IPPL LANGUAGES C CXX)
set (IPPL_VERSION_MAJOR 3)
set (IPPL_VERSION_MINOR 0.1)

Expand Down

2 comments on commit 9407ff3

@aaadelmann
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need this?

@felixschurk
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to add Catalyst2 API - DOCS, Catalyst2 API - Source Code to be used as the In-Situ Framework.
In order to link against Catalyst 2 we need to have the MPI_C compiler available.
Otherwise we receive an error such as:

-- Adding index test found in alpine
CMake Error at /p/software/juwels/stages/2023/software/CMake/3.23.1-GCCcore-11.3.0/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find MPI (missing: MPI_C_FOUND C)

      Reason given by package: MPI component 'C' was requested, but language C is not enabled.

Without specifying this option the C compilers are not available.

However it is still a work in progress, and we are still facing some issues after having the library linked, so this might be changed.

Please sign in to comment.