diff --git a/projects/rocsparse/clients/CMakeLists.txt b/projects/rocsparse/clients/CMakeLists.txt index 90eac6b226b..86c40c77343 100644 --- a/projects/rocsparse/clients/CMakeLists.txt +++ b/projects/rocsparse/clients/CMakeLists.txt @@ -101,7 +101,11 @@ else() # if there is no omp.h to find the client compilation will fail and this should be obvious, used to be REQUIRED find_package(OpenMP) if (TARGET OpenMP::OpenMP_CXX) - set(ROCSPARSE_CLIENT_LIBS "OpenMP::OpenMP_CXX") + if(NOT WIN32) + set(ROCSPARSE_CLIENT_LIBS "OpenMP::OpenMP_CXX") + else() + set(ROCSPARSE_CLIENT_LIBS libomp) + endif() endif() endif() diff --git a/projects/rocsparse/clients/tools/CMakeLists.txt b/projects/rocsparse/clients/tools/CMakeLists.txt index 301b239c2d3..d7d574bbc22 100644 --- a/projects/rocsparse/clients/tools/CMakeLists.txt +++ b/projects/rocsparse/clients/tools/CMakeLists.txt @@ -37,6 +37,8 @@ foreach(app ${ROCSPARSEIO_TOOLS_SOURCES}) # Internal common header target_include_directories(${app} PRIVATE $ $) + target_link_libraries(${app} PRIVATE hip::host) + # Set tools output directory set_target_properties(${app} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/staging")