Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scm-io
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
inmcm-mirror
scm-io
Commits
abd13439
Commit
abd13439
authored
4 months ago
by
Debolskiy Andrey
Browse files
Options
Downloads
Patches
Plain Diff
update cmakelists to work with static linking
parent
a5e04c10
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+6
-0
6 additions, 0 deletions
CMakeLists.txt
with
6 additions
and
0 deletions
CMakeLists.txt
+
6
−
0
View file @
abd13439
...
...
@@ -43,6 +43,11 @@ execute_process (
OUTPUT_VARIABLE temp
)
separate_arguments
(
netcdf_libs UNIX_COMMAND
"
${
temp
}
"
)
execute_process
(
COMMAND bash -c
"nc-config --static | tr -d '
\n
'"
OUTPUT_VARIABLE temp
)
separate_arguments
(
netcdf_static UNIX_COMMAND
"
${
temp
}
"
)
#target_include_directories(lib_scm_io PRIVATE ${netCDF_INCLUDE_DIR})
...
...
@@ -53,4 +58,5 @@ separate_arguments(netcdf_libs UNIX_COMMAND "${temp}")
add_executable
(
test_netcdf_io src/test_netcdf.f90
)
target_link_options
(
test_netcdf_io PRIVATE
${
netcdff_libs
}
)
target_link_options
(
test_netcdf_io PRIVATE
${
netcdf_libs
}
)
target_link_options
(
test_netcdf_io PRIVATE
${
netcdf_static
}
)
target_link_libraries
(
test_netcdf_io lib_scm_io
)
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