From b870826da78d86305562914b9e759dc8e01673c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Milkovi=C4=8D?= Date: Wed, 5 Aug 2020 21:23:12 +0200 Subject: [PATCH] Fixed build under RHEL based Linux where libraries are installed into lib64 instead of just lib --- deps/yaramod/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.")