Skip to content

Commit

Permalink
build: Only add magic library dir in regular build
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Feb 3, 2025
1 parent 7ddfba1 commit c94265c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/libimhex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ include(GenerateExportHeader)
generate_export_header(libimhex)

target_include_directories(libimhex ${LIBIMHEX_LIBRARY_TYPE} include ${XDGPP_INCLUDE_DIRS} ${LLVM_INCLUDE_DIRS} ${FMT_INCLUDE_DIRS})
target_link_directories(libimhex ${LIBIMHEX_LIBRARY_TYPE}} ${MAGIC_LIBRARY_DIRS})

if (NOT IMHEX_EXTERNAL_PLUGIN_BUILD)
if (WIN32)
Expand Down Expand Up @@ -153,7 +152,7 @@ if (NOT IMHEX_EXTERNAL_PLUGIN_BUILD)

target_include_directories(libimhex ${LIBIMHEX_LIBRARY_TYPE} ${MBEDTLS_INCLUDE_DIR} ${LIBBACKTRACE_INCLUDE_DIRS} ${MAGIC_INCLUDE_DIRS})
target_link_libraries(libimhex ${LIBIMHEX_LIBRARY_TYPE} ${MBEDTLS_LIBRARIES})
target_link_directories(libimhex ${LIBIMHEX_LIBRARY_TYPE} ${MBEDTLS_LIBRARY_DIR})
target_link_directories(libimhex ${LIBIMHEX_LIBRARY_TYPE} ${MBEDTLS_LIBRARY_DIR} ${MAGIC_LIBRARY_DIRS})

precompileHeaders(libimhex "${CMAKE_CURRENT_SOURCE_DIR}/include")
endif()
Expand Down

0 comments on commit c94265c

Please sign in to comment.