mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
build: Fixed libimhex not finding nlohmann json on some platforms
This commit is contained in:
@@ -256,7 +256,10 @@ macro(createPackage)
|
|||||||
set(CPACK_BUNDLE_ICON "${CMAKE_SOURCE_DIR}/resources/dist/macos/AppIcon.icns")
|
set(CPACK_BUNDLE_ICON "${CMAKE_SOURCE_DIR}/resources/dist/macos/AppIcon.icns")
|
||||||
set(CPACK_BUNDLE_PLIST "${CMAKE_BINARY_DIR}/${BUNDLE_NAME}/Contents/Info.plist")
|
set(CPACK_BUNDLE_PLIST "${CMAKE_BINARY_DIR}/${BUNDLE_NAME}/Contents/Info.plist")
|
||||||
|
|
||||||
add_custom_command(TARGET imhex_all POST_BUILD COMMAND "codesign" ARGS "--force" "--deep" "--sign" "-" "${CMAKE_BINARY_DIR}/${BUNDLE_NAME}")
|
find_program(CODESIGN_PATH codesign)
|
||||||
|
if (CODESIGN_PATH)
|
||||||
|
add_custom_command(TARGET imhex_all POST_BUILD COMMAND "codesign" ARGS "--force" "--deep" "--sign" "-" "${CMAKE_BINARY_DIR}/${BUNDLE_NAME}")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
install(TARGETS main RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
install(TARGETS main RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
|
|||||||
@@ -21,9 +21,11 @@ add_subdirectory(lib/third_party/imgui EXCLUDE_FROM_ALL)
|
|||||||
|
|
||||||
set(FMT_INSTALL OFF CACHE BOOL "" FORCE)
|
set(FMT_INSTALL OFF CACHE BOOL "" FORCE)
|
||||||
add_subdirectory_if_exists(lib/third_party/fmt)
|
add_subdirectory_if_exists(lib/third_party/fmt)
|
||||||
|
set(FMT_LIBRARIES fmt::fmt-header-only PARENT_SCOPE)
|
||||||
set(FMT_LIBRARIES fmt::fmt-header-only)
|
set(FMT_LIBRARIES fmt::fmt-header-only)
|
||||||
|
|
||||||
add_subdirectory_if_exists(lib/third_party/nlohmann_json)
|
add_subdirectory_if_exists(lib/third_party/nlohmann_json)
|
||||||
|
set(NLOHMANN_JSON_LIBRARIES nlohmann_json PARENT_SCOPE)
|
||||||
set(NLOHMANN_JSON_LIBRARIES nlohmann_json)
|
set(NLOHMANN_JSON_LIBRARIES nlohmann_json)
|
||||||
|
|
||||||
add_subdirectory(lib/external/libwolv EXCLUDE_FROM_ALL)
|
add_subdirectory(lib/external/libwolv EXCLUDE_FROM_ALL)
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ if (NOT IMHEX_EXTERNAL_PLUGIN_BUILD)
|
|||||||
target_link_libraries(libimhex PUBLIC libpl ${IMGUI_LIBRARIES})
|
target_link_libraries(libimhex PUBLIC libpl ${IMGUI_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(libimhex ${LIBIMHEX_LIBRARY_TYPE} nlohmann_json imgui_all_includes ${FMT_LIBRARIES})
|
target_link_libraries(libimhex ${LIBIMHEX_LIBRARY_TYPE} ${NLOHMANN_JSON_LIBRARIES} imgui_all_includes ${FMT_LIBRARIES})
|
||||||
|
|
||||||
set_property(TARGET libimhex PROPERTY INTERPROCEDURAL_OPTIMIZATION FALSE)
|
set_property(TARGET libimhex PROPERTY INTERPROCEDURAL_OPTIMIZATION FALSE)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user