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()