Skip to content
Permalink
Browse files
Switch targets staged_[plugin_dir_name] to staged-[plugin_dir_name], …
…as noted in comments

- Only plugin directories should have underscores, targets should have hyphens
  • Loading branch information
dakcarto committed Aug 3, 2013
1 parent 3df3463 commit 3bf4031175efb00c9b244586c305b52376b9aae5
Showing with 5 additions and 5 deletions.
  1. +5 −5 python/plugins/CMakeLists.txt
@@ -61,14 +61,14 @@ MACRO (PLUGIN_INSTALL plugin subdir )
ENDFOREACH(file)
ADD_DEPENDENCIES(staged-plugins ${plugin}-${subdir_sane}-stageinstall)

IF(TARGET staged_${plugin})
ADD_DEPENDENCIES(staged_${plugin} ${plugin}-${subdir_sane}-stageinstall)
ELSE(TARGET staged_${plugin})
ADD_CUSTOM_TARGET(staged_${plugin} DEPENDS ${plugin}-${subdir_sane}-stageinstall)
IF(TARGET staged-${plugin})
ADD_DEPENDENCIES(staged-${plugin} ${plugin}-${subdir_sane}-stageinstall)
ELSE(TARGET staged-${plugin})
ADD_CUSTOM_TARGET(staged-${plugin} DEPENDS ${plugin}-${subdir_sane}-stageinstall)
ADD_CUSTOM_TARGET(clean-staged-${plugin}
COMMAND ${CMAKE_COMMAND} -E remove_directory ${PYTHON_OUTPUT_DIRECTORY}/plugins/${plugin}
)
ENDIF(TARGET staged_${plugin})
ENDIF(TARGET staged-${plugin})

ENDMACRO (PLUGIN_INSTALL)

0 comments on commit 3bf4031

Please sign in to comment.