explicitly link against delayimp

This commit is contained in:
ConfiG 2024-02-07 10:54:16 +03:00
parent 722c75aef9
commit 2c8d6fd636
No known key found for this signature in database
GPG key ID: 44DA1983F524C11B

View file

@ -1,4 +1,7 @@
cmake_minimum_required(VERSION 3.21 FATAL_ERROR)
cmake_minimum_required(VERSION 3.25 FATAL_ERROR)
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT Embedded)
cmake_policy(SET CMP0141 NEW)
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build libraries static" FORCE)
@ -180,7 +183,7 @@ target_include_directories(GeodeBindings PUBLIC
)
target_link_directories(GeodeBindings PUBLIC ${GEODE_LOADER_PATH}/include/link)
target_link_libraries(GeodeBindings PUBLIC ghc_filesystem fmt TulipHookInclude mat-json GeodeFilesystemImpl)
target_link_libraries(${PROJECT_NAME} INTERFACE GeodeBindings)
target_link_libraries(${PROJECT_NAME} INTERFACE GeodeBindings delayimp)
if (NOT EXISTS ${GEODE_BIN_PATH})
file(MAKE_DIRECTORY ${GEODE_BIN_PATH})