Force all headers other than "Globals.h" to be included with relative paths (#4269)
Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
SET (SRCS
|
||||
EnvelopeParser.cpp
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "HTTPServerConnection.h"
|
||||
#include "HTTPFormParser.h"
|
||||
#include "SslHTTPServerConnection.h"
|
||||
#include "mbedTLS++/SslConfig.h"
|
||||
#include "../mbedTLS++/SslConfig.h"
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
#include "../OSSupport/Network.h"
|
||||
#include "../IniFile.h"
|
||||
#include "mbedTLS++/CryptoKey.h"
|
||||
#include "mbedTLS++/X509Cert.h"
|
||||
#include "../mbedTLS++/CryptoKey.h"
|
||||
#include "../mbedTLS++/X509Cert.h"
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "HTTPServerConnection.h"
|
||||
#include "mbedTLS++/BufferedSslContext.h"
|
||||
#include "../mbedTLS++/BufferedSslContext.h"
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user