1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-11-23 21:30:09 +00:00

Lib: force to be compiled *after* VMBoxGen

This commit is contained in:
CPunch 2022-05-19 12:32:39 -05:00
parent 778c9fb92a
commit 872641cc63

View File

@ -13,6 +13,9 @@ file(GLOB_RECURSE LIBHEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/**.h)
add_library(LaikaLib STATIC ${LIBSOURCE} ${LIBHEADERS})
target_link_libraries(LaikaLib PUBLIC sodium)
# make sure we're compiled *AFTER* lboxconfig.h has been generated
add_dependencies(LaikaLib VMBoxGen)
# add the version definitions and the 'DEBUG' preprocessor definition if we're compiling as Debug
target_compile_definitions(LaikaLib PUBLIC "$<$<CONFIG:Debug>:DEBUG>")