From 6d3c46c73cad0d3bf40f48033a72e979a9afa693 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Fri, 31 Aug 2018 13:35:06 +0200 Subject: [PATCH] Quick and dirty --- cmake/SalomeMacros.cmake | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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) #---------------------------------------------------------------------------- -- 2.39.2