From 872641cc634a764b2a0f33245e31295ce4cf67ea Mon Sep 17 00:00:00 2001 From: CPunch Date: Thu, 19 May 2022 12:32:39 -0500 Subject: [PATCH] Lib: force to be compiled *after* VMBoxGen --- lib/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 99c0bc2..559f794 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -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 "$<$:DEBUG>")