Move yaml.h, gekko_support.h to include/athena

Check if atdna target defined before
This commit is contained in:
Luke Street 2021-04-12 22:44:09 -04:00
parent b67f6dc231
commit 8558ca1b51
7 changed files with 8 additions and 8 deletions

View File

@ -185,7 +185,7 @@ add_library(athena-core
include/athena/YAMLCommon.hpp
include/athena/YAMLDocReader.hpp
include/athena/YAMLDocWriter.hpp
include/yaml.h
include/athena/yaml.h
include/athena/utf8proc.h
)
if(WIN32)
@ -214,7 +214,7 @@ else()
if(GEKKO OR NX)
target_sources(athena-core PRIVATE
src/gekko_support.c
include/gekko_support.h
include/athena/gekko_support.h
)
endif()
endif()

View File

@ -2,7 +2,7 @@
# ATDNA Build #
###############
if(NOT CMAKE_CROSSCOMPILING)
if(NOT TARGET atdna AND NOT CMAKE_CROSSCOMPILING)
get_directory_property(ATDNA_DEFINES COMPILE_DEFINITIONS)
list(REMOVE_ITEM ATDNA_DEFINES _GLIBCXX_DEBUG=1)
@ -149,6 +149,6 @@ endif()
endif()
include(atdnaHelpers.cmake)
endif()
include(atdnaHelpers.cmake)

View File

@ -1,7 +1,7 @@
#include "config.h"
#include <yaml.h>
#include <athena/yaml.h>
#include <assert.h>
#include <limits.h>

View File

@ -8,7 +8,7 @@
#include <string>
#include <vector>
#include <yaml.h>
#include "yaml.h"
#include "athena/Types.hpp"

View File

@ -1,5 +1,5 @@
#if defined(GEKKO) || defined(__SWITCH__)
#include "gekko_support.h"
#include "athena/gekko_support.h"
#define SYMLOOP_MAX 8
#include <sys/stat.h>
#include <sys/param.h>