ENDFOREACH(file ${file_list})
# Generate only one target for all requested Python script compilation.
# Make sure that the target name is unique too.
- IF(_all_pyc)
+ # IF(_all_pyc)
+ # SET(_cnt 0)
+ # WHILE(TARGET "PYCOMPILE${unique_name}_${_cnt}")
+ # MATH(EXPR _cnt ${_cnt}+1)
+ # ENDWHILE()
+ # SET(_target_name "PYCOMPILE${unique_name}_${_cnt}")
+ # ADD_CUSTOM_TARGET(${_target_name} ALL DEPENDS ${_all_pyc} ${_all_pyo})
+ # IF(SALOME_INSTALL_SCRIPTS_TARGET_NAME)
+ # SET(${SALOME_INSTALL_SCRIPTS_TARGET_NAME} ${_target_name})
+ # ENDIF(SALOME_INSTALL_SCRIPTS_TARGET_NAME)
+ # ENDIF()
SET(_cnt 0)
WHILE(TARGET "PYCOMPILE${unique_name}_${_cnt}")
MATH(EXPR _cnt ${_cnt}+1)
ENDWHILE()
SET(_target_name "PYCOMPILE${unique_name}_${_cnt}")
- ADD_CUSTOM_TARGET(${_target_name} ALL DEPENDS ${_all_pyc} ${_all_pyo})
+ ADD_CUSTOM_TARGET(${_target_name})
IF(SALOME_INSTALL_SCRIPTS_TARGET_NAME)
SET(${SALOME_INSTALL_SCRIPTS_TARGET_NAME} ${_target_name})
ENDIF(SALOME_INSTALL_SCRIPTS_TARGET_NAME)
- ENDIF()
ENDMACRO(SALOME_INSTALL_SCRIPTS)
#----------------------------------------------------------------------------