1
0
mirror of synced 2024-11-28 01:20:51 +01:00

build: Allow precompiled headers to be turned off

This commit is contained in:
WerWolv 2024-03-02 11:51:33 +01:00
parent 091be1440a
commit deafb6fe08
3 changed files with 4 additions and 1 deletions

View File

@ -614,6 +614,7 @@ macro(addBundledLibraries)
endif()
set(LIBPL_BUILD_CLI_AS_EXECUTABLE OFF CACHE BOOL "" FORCE)
set(LIBPL_ENABLE_PRECOMPILED_HEADERS ${IMHEX_ENABLE_PRECOMPILED_HEADERS} CACHE BOOL "" FORCE)
if (WIN32)
set(LIBPL_SHARED_LIBRARY ON CACHE BOOL "" FORCE)

View File

@ -41,6 +41,8 @@ macro(add_imhex_plugin)
addIncludesFromLibrary(${IMHEX_PLUGIN_NAME} libpl)
addIncludesFromLibrary(${IMHEX_PLUGIN_NAME} libpl-gen)
precompileHeaders(${IMHEX_PLUGIN_NAME} "${CMAKE_CURRENT_SOURCE_DIR}/include")
# Add IMHEX_PROJECT_NAME and IMHEX_VERSION define
target_compile_definitions(${IMHEX_PLUGIN_NAME} PRIVATE IMHEX_PROJECT_NAME="${IMHEX_PLUGIN_NAME}")
target_compile_definitions(${IMHEX_PLUGIN_NAME} PRIVATE IMHEX_VERSION="${IMHEX_VERSION_STRING}")

@ -1 +1 @@
Subproject commit f5d27c3c7dcadbd6dc02dcfcb52548b88210a91e
Subproject commit d4648c4a596f19646519f274fa99738eb2a314de