Skip to content
Snippets Groups Projects
Commit abd13439 authored by Debolskiy Andrey's avatar Debolskiy Andrey :bicyclist_tone5:
Browse files

update cmakelists to work with static linking

parent a5e04c10
No related branches found
No related tags found
No related merge requests found
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment