From 531a0694104344c125005cc0d9b76f5e938b0891 Mon Sep 17 00:00:00 2001 From: Takahito Tejima Date: Wed, 10 Jun 2015 18:04:01 -0700 Subject: [PATCH] cmake fix: specify the destination file name for the maya script This change fixes a cmake build issue, which fails to create lib directory when maya example plugin is configured to build. --- examples/mayaPolySmooth/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/mayaPolySmooth/CMakeLists.txt b/examples/mayaPolySmooth/CMakeLists.txt index ab95cadd..ee05689c 100644 --- a/examples/mayaPolySmooth/CMakeLists.txt +++ b/examples/mayaPolySmooth/CMakeLists.txt @@ -109,7 +109,9 @@ install(TARGETS maya_polySmoothNode DESTINATION "${CMAKE_PLUGINDIR_BASE}") add_custom_target(maya_polySmoothNode_melScripts COMMAND - ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/mayaPolySmooth.mel" "${CMAKE_BINARY_DIR}/${CMAKE_LIBDIR_BASE}" + ${CMAKE_COMMAND} -E copy + "${CMAKE_CURRENT_SOURCE_DIR}/mayaPolySmooth.mel" + "${CMAKE_BINARY_DIR}/${CMAKE_LIBDIR_BASE}/mayaPolySmooth.mel" DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/mayaPolySmooth.mel" )