|
@@ -62,8 +62,14 @@ if(NOT OPENSSL_NO_ASM) |
|
|
endif() |
|
|
endif() |
|
|
|
|
|
|
|
|
function(perlasm dest src) |
|
|
function(perlasm dest src) |
|
|
|
|
|
get_filename_component(dir ${dest} DIRECTORY) |
|
|
|
|
|
if ("${dir}" STREQUAL "") |
|
|
|
|
|
set(dir ".") |
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
add_custom_command( |
|
|
add_custom_command( |
|
|
OUTPUT ${dest} |
|
|
OUTPUT ${dest} |
|
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${dir} |
|
|
COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${src} ${PERLASM_STYLE} ${PERLASM_FLAGS} ${ARGN} ${dest} |
|
|
COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${src} ${PERLASM_STYLE} ${PERLASM_FLAGS} ${ARGN} ${dest} |
|
|
DEPENDS |
|
|
DEPENDS |
|
|
${src} |
|
|
${src} |
|
|