Skip to content

Commit

Permalink
Switch targets staged_[plugin_dir_name] to staged-[plugin_dir_name], …
Browse files Browse the repository at this point in the history
…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 3bf4031
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3bf4031

Please sign in to comment.