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})