diff --git a/deps/yaramod/CMakeLists.txt b/deps/yaramod/CMakeLists.txt index f2d8cb3f8..12b940681 100644 --- a/deps/yaramod/CMakeLists.txt +++ b/deps/yaramod/CMakeLists.txt @@ -3,15 +3,15 @@ set(YARAMOD_INSTALL_DIR ${CMAKE_BINARY_DIR}/deps/install/yaramod) set(YARAMOD_LIB_NAME ${CMAKE_STATIC_LIBRARY_PREFIX}yaramod${CMAKE_STATIC_LIBRARY_SUFFIX}) set(YARAMOD_LIB_PNAME ${CMAKE_STATIC_LIBRARY_PREFIX}retdec-yaramod${CMAKE_STATIC_LIBRARY_SUFFIX}) -set(YARAMOD_LIB ${YARAMOD_INSTALL_DIR}/lib/${YARAMOD_LIB_NAME}) +set(YARAMOD_LIB ${YARAMOD_INSTALL_DIR}/${CMAKE_INSTALL_LIBDIR}/${YARAMOD_LIB_NAME}) set(FMT_LIB_NAME ${CMAKE_STATIC_LIBRARY_PREFIX}pog_fmt${CMAKE_STATIC_LIBRARY_SUFFIX}) set(FMT_LIB_PNAME ${CMAKE_STATIC_LIBRARY_PREFIX}retdec-pog_fmt${CMAKE_STATIC_LIBRARY_SUFFIX}) -set(FMT_LIB ${YARAMOD_INSTALL_DIR}/lib/${FMT_LIB_NAME}) +set(FMT_LIB ${YARAMOD_INSTALL_DIR}/${CMAKE_INSTALL_LIBDIR}/${FMT_LIB_NAME}) set(RE2_LIB_NAME ${CMAKE_STATIC_LIBRARY_PREFIX}pog_re2${CMAKE_STATIC_LIBRARY_SUFFIX}) set(RE2_LIB_PNAME ${CMAKE_STATIC_LIBRARY_PREFIX}retdec-pog_re2${CMAKE_STATIC_LIBRARY_SUFFIX}) -set(RE2_LIB ${YARAMOD_INSTALL_DIR}/lib/${RE2_LIB_NAME}) +set(RE2_LIB ${YARAMOD_INSTALL_DIR}/${CMAKE_INSTALL_LIBDIR}/${RE2_LIB_NAME}) if(YARAMOD_LOCAL_DIR) message(STATUS "YaraMod: using local YaraMod directory.")