commit | 4cdf3eb19bd58db999822048c164e30c26b19178 | [log] [tgz] |
---|---|---|
author | Wouter van Oortmerssen <wvo@google.com> | Fri Oct 24 14:26:29 2014 -0700 |
committer | Wouter van Oortmerssen <wvo@google.com> | Fri Oct 24 14:58:32 2014 -0700 |
tree | db5a70de5045b65e189b04b6a9551d13be9fb817 | |
parent | ea592296b8d56c10c16c2b410584a0a42f5eae2d [diff] [blame] |
Made CMakeLists.txt compatible with older versions of CMake. By replacing DIRECTORY by PATH: http://www.cmake.org/cmake/help/v3.0/command/get_filename_component.html Change-Id: I6f5802deeda53dea443b255294235e43e7bb5389 Tested: on Linux.
diff --git a/CMakeLists.txt b/CMakeLists.txt index a6f21cb..811e6f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -72,7 +72,7 @@ add_executable(flatc ${FlatBuffers_Compiler_SRCS}) function(compile_flatbuffers_schema_to_cpp SRC_FBS) - get_filename_component(SRC_FBS_DIR ${SRC_FBS} DIRECTORY) + get_filename_component(SRC_FBS_DIR ${SRC_FBS} PATH) string(REGEX REPLACE "\\.fbs$" "_generated.h" GEN_HEADER ${SRC_FBS}) add_custom_command( OUTPUT ${GEN_HEADER}