1. Shlomi Fish
  2. Website Meta Language

Source

Website Meta Language / src / Common.cmake

Diff from to

File src/Common.cmake

     )
 ENDMACRO(ADD_COPY_TARGET)
 
-MACRO(RUN_POD2MAN TARGET_NAME BASE_SOURCE BASE_DEST SECTION CENTER RELEASE)
+MACRO(RUN_POD2MAN TARGET_DESTS_VARNAME BASE_SOURCE BASE_DEST SECTION CENTER RELEASE)
     SET (DEST "${CMAKE_CURRENT_BINARY_DIR}/${BASE_DEST}")
     IF (POD2MAN_SOURCE_IS_IN_BINARY)
         SET (SOURCE "${CMAKE_CURRENT_BINARY_DIR}/${BASE_SOURCE}")
         VERBATIM
     )
     # The custom command needs to be assigned to a target.
-    IF (POD2MAN_TARGET_IS_A_LIST)
-        LIST(APPEND "${TARGET_NAME}" "${DEST}")
-    ELSE (POD2MAN_TARGET_IS_A_LIST)
-        ADD_CUSTOM_TARGET(
-            ${TARGET_NAME} ALL
-            DEPENDS ${DEST}
-        )
-    ENDIF (POD2MAN_TARGET_IS_A_LIST)
+    LIST(APPEND "${TARGET_DESTS_VARNAME}" "${DEST}")
 ENDMACRO(RUN_POD2MAN)
 
 MACRO(SIMPLE_POD2MAN TARGET_NAME SOURCE DEST SECTION)
 
 MACRO(DEFINE_WML_AUX_PERL_PROG BASENAME)
     DEFINE_WML_AUX_PERL_PROG_WITHOUT_MAN("${BASENAME}")
-    SET (POD2MAN_TARGET_IS_A_LIST 1)
     SET (aux_pod_dests )
     RUN_POD2MAN("aux_pod_dests" "${BASENAME}.src" "${BASENAME}.1" "1" "EN  Tools" "En Tools")
     INSTALL_RENAME_MAN ("${BASENAME}.1" 1 "wml_aux_${BASENAME}" "${CMAKE_CURRENT_BINARY_DIR}")
-    SET (POD2MAN_TARGET_IS_A_LIST )
     ADD_CUSTOM_TARGET(
         "pod_${BASENAME}" ALL
         DEPENDS ${aux_pod_dests}
     PREPROCESS_PATH_PERL(
         "${BASENAME}_preproc" "${BASENAME}.src" "${BASENAME}.pl"
     )
-    SET (POD2MAN_TARGET_IS_A_LIST 1)
     SET (perl_backend_pod_tests )
     INST_RENAME_POD2MAN(
         "perl_backend_pod_tests" "${BASENAME}.src" "${BASENAME}" "1"
         "${DEST_BASENAME}"
     )
-    SET (POD2MAN_TARGET_IS_A_LIST)
     ADD_CUSTOM_TARGET(
         "${BASENAME}_pod" ALL
         DEPENDS ${perl_backend_pod_tests}