From: Anthony Geay Date: Fri, 31 Aug 2018 11:35:06 +0000 (+0200) Subject: Quick and dirty X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6d3c46c73cad0d3bf40f48033a72e979a9afa693;p=tools%2Fconfiguration.git Quick and dirty --- diff --git a/cmake/SalomeMacros.cmake b/cmake/SalomeMacros.cmake index 8a85fe8..d029918 100644 --- a/cmake/SalomeMacros.cmake +++ b/cmake/SalomeMacros.cmake @@ -160,17 +160,26 @@ MACRO(SALOME_INSTALL_SCRIPTS file_list path) 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) #----------------------------------------------------------------------------