build: Allow precompiled headers to be turned off
This commit is contained in:
parent
091be1440a
commit
deafb6fe08
@ -614,6 +614,7 @@ macro(addBundledLibraries)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(LIBPL_BUILD_CLI_AS_EXECUTABLE OFF CACHE BOOL "" FORCE)
|
set(LIBPL_BUILD_CLI_AS_EXECUTABLE OFF CACHE BOOL "" FORCE)
|
||||||
|
set(LIBPL_ENABLE_PRECOMPILED_HEADERS ${IMHEX_ENABLE_PRECOMPILED_HEADERS} CACHE BOOL "" FORCE)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(LIBPL_SHARED_LIBRARY ON CACHE BOOL "" FORCE)
|
set(LIBPL_SHARED_LIBRARY ON CACHE BOOL "" FORCE)
|
||||||
|
@ -41,6 +41,8 @@ macro(add_imhex_plugin)
|
|||||||
addIncludesFromLibrary(${IMHEX_PLUGIN_NAME} libpl)
|
addIncludesFromLibrary(${IMHEX_PLUGIN_NAME} libpl)
|
||||||
addIncludesFromLibrary(${IMHEX_PLUGIN_NAME} libpl-gen)
|
addIncludesFromLibrary(${IMHEX_PLUGIN_NAME} libpl-gen)
|
||||||
|
|
||||||
|
precompileHeaders(${IMHEX_PLUGIN_NAME} "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||||
|
|
||||||
# Add IMHEX_PROJECT_NAME and IMHEX_VERSION define
|
# 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_PROJECT_NAME="${IMHEX_PLUGIN_NAME}")
|
||||||
target_compile_definitions(${IMHEX_PLUGIN_NAME} PRIVATE IMHEX_VERSION="${IMHEX_VERSION_STRING}")
|
target_compile_definitions(${IMHEX_PLUGIN_NAME} PRIVATE IMHEX_VERSION="${IMHEX_VERSION_STRING}")
|
||||||
|
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
@ -1 +1 @@
|
|||||||
Subproject commit f5d27c3c7dcadbd6dc02dcfcb52548b88210a91e
|
Subproject commit d4648c4a596f19646519f274fa99738eb2a314de
|
Loading…
Reference in New Issue
Block a user