diff --git a/Applications/DataExplorer/NetCdfDialog/CMakeLists.txt b/Applications/DataExplorer/NetCdfDialog/CMakeLists.txt
index 93c6e15436147f309c969b0b524f5fe7b7da0570..a473593e20f2154fe5059c0236bc8ef9e5dedd23 100644
--- a/Applications/DataExplorer/NetCdfDialog/CMakeLists.txt
+++ b/Applications/DataExplorer/NetCdfDialog/CMakeLists.txt
@@ -5,10 +5,10 @@ if(BUILD_SHARED_LIBS)
 endif()
 target_link_libraries(NetCdfDialogLib
                       PUBLIC Qt5::Widgets
-                             ${NETCDF_LIBRARIES_C}
                              ${NETCDF_LIBRARIES_CXX}
-                             ${HDF5_LIBRARIES}
+                             ${NETCDF_LIBRARIES_C}
                              ${HDF5_HL_LIBRARIES}
+                             ${HDF5_LIBRARIES}
                       PRIVATE MathLib)
 set_property(TARGET NetCdfDialogLib PROPERTY FOLDER "DataExplorer")
 
diff --git a/Applications/Utils/FileConverter/CMakeLists.txt b/Applications/Utils/FileConverter/CMakeLists.txt
index 8afa5f83108d9ab87bc63aee8cf20f4999225eb4..28882437a085b8131fe26d1786240fbcb41b3acb 100644
--- a/Applications/Utils/FileConverter/CMakeLists.txt
+++ b/Applications/Utils/FileConverter/CMakeLists.txt
@@ -43,8 +43,8 @@ endif()
 
 if(TARGET NetCdfConverter)
     target_link_libraries(NetCdfConverter
-                          ${NETCDF_LIBRARIES_C}
                           ${NETCDF_LIBRARIES_CXX}
-                          ${HDF5_LIBRARIES}
-                          ${HDF5_HL_LIBRARIES})
+                          ${NETCDF_LIBRARIES_C}
+                          ${HDF5_HL_LIBRARIES}
+                          ${HDF5_LIBRARIES})
 endif()