Skip to content

Commit

Permalink
Link with zlib.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkestene committed Apr 24, 2024
1 parent 99a2af7 commit 7f418a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ project(
DESCRIPTION "euler2d_kokkos is mini application using C++/Kokkos library, used for teaching purpose"
LANGUAGES CXX C Fortran)

# external dependencies: zlib (required by cnpy)
find_package(ZLIB REQUIRED)

#
# default local cmake macro repository
#
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ add_executable(euler2d
target_include_directories(euler2d
PUBLIC
${CMAKE_SOURCE_DIR})
target_link_libraries(euler2d Kokkos::kokkos)
target_link_libraries(euler2d Kokkos::kokkos ZLIB::ZLIB)

if(HDF5_ENABLED)
target_link_libraries(euler2d HDF5::HDF5)
Expand Down

0 comments on commit 7f418a0

Please sign in to comment.