From a2d1d4464f77705ce0dc85979cd75d9fbf8d3293 Mon Sep 17 00:00:00 2001 From: luocai Date: Mon, 25 Dec 2023 16:31:42 +0800 Subject: [PATCH] Add include files search path. --- Universal/CMakeLists.txt | 3 +++ Universal/Singleton.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Universal/CMakeLists.txt b/Universal/CMakeLists.txt index 26e2bb1..78921ec 100644 --- a/Universal/CMakeLists.txt +++ b/Universal/CMakeLists.txt @@ -14,8 +14,11 @@ add_library(Universal StringUtility.h StringUtility.cpp ) +cmake_path(GET CMAKE_CURRENT_SOURCE_DIR PARENT_PATH KYLIN_CORE_INCLUDE_PATH) + target_include_directories(Universal INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} + INTERFACE ${KYLIN_CORE_INCLUDE_PATH} ) target_link_libraries(Universal diff --git a/Universal/Singleton.h b/Universal/Singleton.h index 5bf5b49..9875ee0 100644 --- a/Universal/Singleton.h +++ b/Universal/Singleton.h @@ -1,5 +1,5 @@ -#ifndef SINGLETON_H -#define SINGLETON_H +#ifndef CORE_SINGLETON_H +#define CORE_SINGLETON_H #include "BoostLog.h" #include