Copy files with concrete path instead of wildcard.
CMake does not support wildcards in copy command.
@@ -804,7 +804,7 @@ if(${TINYSPLINE_BINDING_REQUESTED})
COMMAND
${CMAKE_COMMAND}
-E copy
- "${TINYSPLINE_PHP_SOURCE_DIRECTORY}/*.php"
+ "${TINYSPLINE_PHP_SOURCE_DIRECTORY}/${TINYSPLINE_PHP_CMAKE_TARGET}.php"
"${TINYSPLINE_PHP_INTERFACE_FILE}"
)
endif()
@@ -842,7 +842,7 @@ if(${TINYSPLINE_BINDING_REQUESTED})
POST_BUILD
COMMAND
${CMAKE_COMMAND} -E copy
- "${TINYSPLINE_PYTHON_SOURCE_DIRECTORY}/*.py"
+ "${TINYSPLINE_PYTHON_SOURCE_DIRECTORY}/${TINYSPLINE_PYTHON_CMAKE_TARGET}.py"
"${TINYSPLINE_PYTHON_INTERFACE_FILE}"
)
endif()
@@ -863,7 +863,7 @@ if(${TINYSPLINE_BINDING_REQUESTED})
COMMAND
${CMAKE_COMMAND}
-E copy
- "${TINYSPLINE_R_SOURCE_DIRECTORY}/*.R"
+ "${TINYSPLINE_R_SOURCE_DIRECTORY}/${TINYSPLINE_R_CMAKE_TARGET}.R"
"${TINYSPLINE_R_INTERFACE_FILE}"
)
endif()
