Commit ab7c897f authored by Philip Quinn's avatar Philip Quinn

Fix 'FindCapnProto.cmake' for CMake versions <2.8.12.

parent ff403547
......@@ -81,7 +81,7 @@ function(CAPNP_GENERATE_CPP SOURCES HEADERS)
set(${HEADERS})
foreach(schema_file ${ARGN})
get_filename_component(file_path ${schema_file} ABSOLUTE)
get_filename_component(file_dir ${file_path} DIRECTORY)
get_filename_component(file_dir ${file_path} PATH)
# Figure out where the output files will go
if (NOT DEFINED CAPNPC_OUTPUT_DIR)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment