]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
Quick and dirty agy/cmake312_pyo_gen
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 31 Aug 2018 11:35:06 +0000 (13:35 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 31 Aug 2018 11:35:06 +0000 (13:35 +0200)
cmake/SalomeMacros.cmake

index 8a85fe828495c0360130527971044f9392533249..d0299183879335829e6218d6501b821b84f3c095 100644 (file)
@@ -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)
 
 #----------------------------------------------------------------------------