Skip to content

Commit

Permalink
Update NetCDF license and build shared libs
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed May 12, 2024
1 parent 7c757ac commit 4a88fdc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion recipes/squadgen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ include_directories(${netcdf_c_incdir})

include_directories(${SRC})
add_executable(SQuadGen ${SQUADGEN_SRC})
target_link_libraries(SQuadGen ${netcdf_c_libs} ${PNG_LIBRARIES})
target_link_libraries(SQuadGen PUBLIC ${netcdf_c_libs} ${PNG_LIBRARIES})

install(TARGETS SQuadGen DESTINATION bin)
1 change: 1 addition & 0 deletions recipes/squadgen/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ cmake \
-D CMAKE_INSTALL_PREFIX="${PREFIX}" \
-D NETCDF_PATH="${PREFIX}" \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_SHARED_LIBS=ON \
..
cmake --build .
cmake --install .
5 changes: 1 addition & 4 deletions recipes/squadgen/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ build:
skip: true # [not linux]
number: 0
ignore_run_exports:
# I don't really understand why these dynamic libraries aren't being linked in...
- libpng
- zlib

requirements:
build:
Expand All @@ -28,7 +26,6 @@ requirements:
- libnetcdf
- libnetcdf * nompi_*
- libpng
- zlib

test:
files:
Expand All @@ -42,7 +39,7 @@ test:

about:
home: https://github.com/ClimateGlobalChange/squadgen
license: GPL-2.0-or-later and CUSTOM
license: GPL-2.0-or-later and NetCDF
license_family: GPL
license_file:
- LICENSE.md
Expand Down

0 comments on commit 4a88fdc

Please sign in to comment.