From 1afa68f5c5a1b6e533e56ad7bb46e7a9a3267d5e Mon Sep 17 00:00:00 2001 From: David Schneller <12698011+davschneller@users.noreply.github.com> Date: Fri, 15 Dec 2023 14:53:24 +0100 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 09dcb2b..2e407e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,7 +55,7 @@ if (NETCDF) target_include_directories(pumgen PUBLIC ${NetCDF_INCLUDE_DIRS}) target_link_libraries(pumgen PUBLIC ${NetCDF_LIBRARY}) target_compile_definitions(pumgen PUBLIC USE_NETCDF) - set(INSTALL_RPATH ${NetCDF_LIBRARY_DIR}) + set(INSTALL_RPATH "${NetCDF_LIBRARY_DIR}") endif() set(HDF5_PREFER_PARALLEL True) @@ -125,5 +125,5 @@ target_compile_definitions(pumgen PUBLIC LOG_LEVEL=${LOG_LEVEL}) if(SIMMETRIX) set(INSTALL_RPATH "${SIM_PS_KRNL_LIB_DIR}:${INSTALL_RPATH}") endif() -set_target_properties(pumgen PROPERTIES INSTALL_RPATH ${INSTALL_RPATH}) +set_target_properties(pumgen PROPERTIES INSTALL_RPATH "${INSTALL_RPATH}") install(TARGETS pumgen RUNTIME DESTINATION bin DESTINATION ${CMAKE_INSTALL_BINDIR})