From 2556e783c6d55b6c22098f9e58c0bb3c3e4d346f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicen=C8=9Biu=20Ciorbaru?= Date: Thu, 9 Sep 2021 12:09:48 +0300 Subject: [PATCH] Eliminate build race condition, messageids is generated This ensures that building loggingcpp has messageids.h generated beforehand, just like errorids.h . --- utils/loggingcpp/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/loggingcpp/CMakeLists.txt b/utils/loggingcpp/CMakeLists.txt index 6fe948258..c4573c0b2 100644 --- a/utils/loggingcpp/CMakeLists.txt +++ b/utils/loggingcpp/CMakeLists.txt @@ -15,6 +15,7 @@ ADD_CUSTOM_COMMAND( DEPENDS genErrId.pl ) +set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/messageids.h PROPERTIES GENERATED TRUE) set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/errorids.h PROPERTIES GENERATED TRUE) add_library(loggingcpp SHARED