Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
883c27e5
Commit
883c27e5
authored
1 month ago
by
Oliver Heidmann
Browse files
Options
Downloads
Patches
Plain Diff
fixed option names
parent
c8067751
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!130
fixed option names
Pipeline
#97418
passed
1 month ago
Stage: basic
Stage: levante
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+16
-16
16 additions, 16 deletions
CMakeLists.txt
with
16 additions
and
16 deletions
CMakeLists.txt
+
16
−
16
View file @
883c27e5
...
...
@@ -11,8 +11,8 @@ include(CheckIncludeFile)
# Finding libraries
### -------------- Pthread ---------------------------
option
(
enable_pthread
"Use the pthread library [default=ON]"
ON
)
if
(
${
enable_pthread
}
)
option
(
CDI_PTHREAD
"Use the pthread library [default=ON]"
ON
)
if
(
${
CDI_PTHREAD
}
)
include
(
FindThreads
)
find_package
(
Threads REQUIRED
)
set_target_properties
(
Threads::Threads PROPERTIES THREADS_PREFER_PTHREAD_FLAG TRUE
)
...
...
@@ -20,35 +20,35 @@ if(${enable_pthread})
endif
()
# enable default internal libs
option
(
enable_libgrib
"GRIB support [default=ON]"
ON
)
if
(
${
enable_libgrib
}
)
option
(
CDI_LIBGRIB
"GRIB support [default=ON]"
ON
)
if
(
${
CDI_LIBGRIB
}
)
list
(
APPEND cdi_compile_defs HAVE_LIBGRIB=1
)
endif
()
option
(
enable_cgribex
"Use the CGRIBEX library [default=ON]"
ON
)
if
(
${
enable_cgribex
}
)
option
(
CDI_LIBGRIBEX
"Use the CGRIBEX library [default=ON]"
ON
)
if
(
${
CDI_LIBGRIBEX
}
)
list
(
APPEND cdi_compile_defs LIBCGRIBEX=1
)
endif
()
option
(
enable_extra
"Use the extra library [default=ON]"
ON
)
if
(
${
enable_extra
}
)
option
(
CDI_EXTRA
"Use the extra library [default=ON]"
ON
)
if
(
${
CDI_EXTRA
}
)
list
(
APPEND cdi_compile_defs HAVE_LIBEXTRA=1
)
endif
()
option
(
enable_ieg
"Use the extra library [default=ON]"
ON
)
if
(
${
enable_ieg
}
)
option
(
CDI_IEG
"Use the extra library [default=ON]"
ON
)
if
(
${
CDI_IEG
}
)
list
(
APPEND cdi_compile_defs HAVE_LIBIEG=1
)
endif
()
option
(
enable_service
"Use the extra library [default=ON]"
ON
)
if
(
${
enable_service
}
)
option
(
CDI_SERVICE
"Use the extra library [default=ON]"
ON
)
if
(
${
CDI_SERVICE
}
)
list
(
APPEND cdi_compile_defs HAVE_LIBSERVICE=1
)
endif
()
# ecCodes
option
(
enable_eccodes
"Use the eccodes library [default=ON]"
ON
)
if
(
${
enable_eccodes
}
OR eccodes_ROOT
)
option
(
CDI_ECCODES
"Use the eccodes library [default=ON]"
ON
)
if
(
${
CDI_ECCODES
}
OR eccodes_ROOT
)
find_package
(
eccodes
)
if
(
${
eccodes_FOUND
}
)
list
(
APPEND cdi_compile_defs HAVE_LIBGRIB_API=
${
eccodes_FOUND
}
)
...
...
@@ -59,8 +59,8 @@ if(${enable_eccodes} OR eccodes_ROOT)
endif
()
# NetCDF
option
(
enable_netcdf
"Use the netcdf library [default=ON]"
ON
)
if
(
${
enable_netcdf
}
OR netCDF_ROOT
)
option
(
CDI_NETCDF
"Use the netcdf library [default=ON]"
ON
)
if
(
${
CDI_NETCDF
}
OR netCDF_ROOT
)
find_package
(
netCDF COMPONENTS C REQUIRED
)
if
(
TARGET netCDF::netcdf
)
list
(
APPEND cdi_compile_defs
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment