From fadabbf9f6811cfcedda728422c21baaa1ea4ecd Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Thu, 19 Nov 2015 21:43:57 +0100 Subject: [PATCH] support cmake 2.8.11 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e119732..bf0d710 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,7 +33,7 @@ macro(generate_compressed_bins BASEDIR) foreach(FILE ${ARGN}) set(COMPRESSED_FILE "${FILE}.z") set(OUTPUT_FILE "${FILE}.o") - get_filename_component(DIR ${FILE} DIRECTORY) + get_filename_component(DIR ${FILE} PATH) if(DIR) file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${DIR}) endif()