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

update linking to hdf5

parent abd13439
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DeveloperToolsToolWindowSettingsV1" lastSelectedContentNodeId="base64-encoder-decoder">
<developerToolsConfigurations />
</component>
</project>
\ No newline at end of file
......@@ -26,15 +26,15 @@ set(src_io
add_library(lib_scm_io ${src_io})
#NetCDF handling
execute_process (
COMMAND bash -c "nc-config --fflags | grep -Eo '^[^ ]+' | tr -d '\n'"
COMMAND bash -c "nf-config --fflags | grep -Eo '^[^ ]+' | tr -d '\n'"
OUTPUT_VARIABLE netcdf_inc
)
cmake_path(SET netcfd_inc_dir " ${netcdf_inc}" )
message("CMake path is ${netcdf_inc}")
target_compile_options(lib_scm_io PRIVATE ${netcdf_inc})
#include_directories(${netcdf_inc})
include_directories(${netcdf_inc})
execute_process (
COMMAND bash -c "nc-config --flibs | tr -d '\n'"
COMMAND bash -c "nf-config --flibs | tr -d '\n'"
OUTPUT_VARIABLE temp
)
separate_arguments(netcdff_libs UNIX_COMMAND "${temp}")
......@@ -44,7 +44,7 @@ execute_process (
)
separate_arguments(netcdf_libs UNIX_COMMAND "${temp}")
execute_process (
COMMAND bash -c "nc-config --static | tr -d '\n'"
COMMAND bash -c "nc-config --all | grep -Eo '\-\-static.*' | cut -d ' ' -f10- | tr -d '\n'"
OUTPUT_VARIABLE temp
)
separate_arguments(netcdf_static UNIX_COMMAND "${temp}")
......
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