diff options
| author | comex <comexk@gmail.com> | 2016-06-25 23:30:32 -0400 |
|---|---|---|
| committer | comex <comexk@gmail.com> | 2016-06-25 23:57:17 -0400 |
| commit | 659d079d5ca44caf210f61ac49534589b75d3f3d (patch) | |
| tree | 9c56dace6056fe006a07baa9f3055bdb246fb14d /Source/Core/Common/Version.cpp | |
| parent | e31a4d1f0731603d0396e592e23cf7acd0457397 (diff) | |
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 <assert.h>, 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.
Diffstat (limited to 'Source/Core/Common/Version.cpp')
| -rw-r--r-- | Source/Core/Common/Version.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 " |
