diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/includes/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/includes/CMakeLists.txt b/test/includes/CMakeLists.txt index 4d7e962fbd..b4da4c0611 100644 --- a/test/includes/CMakeLists.txt +++ b/test/includes/CMakeLists.txt @@ -16,7 +16,7 @@ endforeach() foreach(hfile ${PRE_HEADERS}) string(REGEX REPLACE ^pre/ post/ post_hfile ${hfile}) - get_filename_component(hdir ${CMAKE_CURRENT_BINARY_DIR}/${post_hfile} PATH) + get_filename_component(hdir ${CMAKE_CURRENT_BINARY_DIR}/${post_hfile} DIRECTORY) file(MAKE_DIRECTORY ${hdir}) add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${post_hfile} |