summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2019-08-10 13:15:51 +0200
committerGitHub <noreply@github.com>2019-08-10 13:15:51 +0200
commit26d06051211afea616d052d6b15f7b8fce9ce61d (patch)
tree8f3e3966f3abfca01cd2c3dcce785f8ec61e7c4c /src
parentAdded more clamping operations to cCuboid. (diff)
downloadcuberite-26d06051211afea616d052d6b15f7b8fce9ce61d.tar
cuberite-26d06051211afea616d052d6b15f7b8fce9ce61d.tar.gz
cuberite-26d06051211afea616d052d6b15f7b8fce9ce61d.tar.bz2
cuberite-26d06051211afea616d052d6b15f7b8fce9ce61d.tar.lz
cuberite-26d06051211afea616d052d6b15f7b8fce9ce61d.tar.xz
cuberite-26d06051211afea616d052d6b15f7b8fce9ce61d.tar.zst
cuberite-26d06051211afea616d052d6b15f7b8fce9ce61d.zip
Diffstat (limited to 'src')
-rw-r--r--src/Bindings/ManualBindings.cpp2
-rw-r--r--src/CMakeLists.txt9
2 files changed, 8 insertions, 3 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp
index af4a301a0..b8827442c 100644
--- a/src/Bindings/ManualBindings.cpp
+++ b/src/Bindings/ManualBindings.cpp
@@ -24,7 +24,7 @@
#include "../BlockEntities/MobHeadEntity.h"
#include "../BlockEntities/FlowerPotEntity.h"
#include "../BoundingBox.h"
-#include "../BuildInfo.h"
+#include "BuildInfo.h"
#include "../ClientHandle.h"
#include "../CommandOutput.h"
#include "../CompositeChat.h"
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 75eb112c0..d23fe388d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -88,7 +88,6 @@ SET (HDRS
BlockTypeRegistry.h
BrewingRecipes.h
BoundingBox.h
- BuildInfo.h
BuildInfo.h.cmake
ByteBuffer.h
ChatColor.h
@@ -169,7 +168,7 @@ include_directories ("${CMAKE_CURRENT_SOURCE_DIR}/../lib/sqlite")
include_directories ("${CMAKE_CURRENT_SOURCE_DIR}/../lib/SQLiteCpp/include")
include_directories (SYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/../lib/TCLAP/include")
-configure_file("BuildInfo.h.cmake" "${CMAKE_CURRENT_SOURCE_DIR}/BuildInfo.h")
+configure_file("BuildInfo.h.cmake" "${CMAKE_BINARY_DIR}/include/BuildInfo.h")
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set_source_files_properties(BlockID.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=global-constructors")
@@ -368,3 +367,9 @@ target_link_libraries(${CMAKE_PROJECT_NAME} luaexpat jsoncpp_lib_static mbedtls
# Create a folder for Bindings' documentation:
FILE(MAKE_DIRECTORY "Bindings/docs")
+
+
+# For MSVC, set the startup project to Cuberite:
+if (MSVC)
+ set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT ${CMAKE_PROJECT_NAME})
+endif()