From 659d079d5ca44caf210f61ac49534589b75d3f3d Mon Sep 17 00:00:00 2001 From: comex Date: Sat, 25 Jun 2016 23:30:32 -0400 Subject: Fix in-tree build (cmake .) on OS X. OS X uses a case insensitive filesystem by default: when I try to build, a system header does #include , which picks up Source/Core/Common/Assert.h. This only happens because CMakeLists adds '${PROJECT_BINARY_DIR}/Source/Core/Common' as an include directory: in an out-of-tree build, that directory contains no other source files, but in an in-tree build PROJECT_BINARY_DIR is just the source root. This is only used for scmrev.h. Change the include directory to '${PROJECT_BINARY_DIR}/Source/Core' and the include to "Common/scmrev.h", which is more consistent with normal headers anyway. --- Source/Core/Common/Version.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/Version.cpp') diff --git a/Source/Core/Common/Version.cpp b/Source/Core/Common/Version.cpp index c21896afdc..fba14eeeb6 100644 --- a/Source/Core/Common/Version.cpp +++ b/Source/Core/Common/Version.cpp @@ -3,7 +3,7 @@ // Refer to the license.txt file included. #include "Common/Common.h" -#include "scmrev.h" +#include "Common/scmrev.h" #ifdef _DEBUG #define BUILD_TYPE_STR "Debug " -- cgit v1.2.3