Commits

Anonymous committed 2c95431

Fix more CMake policy warnings - targets with the same name.

Comments (0)

Files changed (8)

src/CMakeLists.txt

 # see - http://www.cmake.org/Wiki/CMake_FAQ#Is_there_an_option_to_produce_more_.27verbose.27_compiling.3F
 SET(CMAKE_VERBOSE_MAKEFILE ON)
-SUBDIRS ( wml_aux wml_backend wml_common wml_docs 
-    wml_frontend wml_include wml_misc wml_test )
+# TODO:
+# add wml_test , wml_misc , wml_include , wml_frontend
+SUBDIRS ( wml_aux wml_backend  
+     )
   ENDFOREACH(name)
 ENDMACRO(CHECK_MULTI_FUNCTIONS_EXISTS)
 
-MACRO(PREPROCESS_PATH_PERL SOURCE DEST)
+MACRO(PREPROCESS_PATH_PERL TARGET_NAME SOURCE DEST)
     SET(PATH_PERL ${PERL_EXECUTABLE})
     ADD_CUSTOM_COMMAND(
         OUTPUT ${DEST}
     )
     # The custom command needs to be assigned to a target.
     ADD_CUSTOM_TARGET(
-        process_perl ALL
+        ${TARGET_NAME} ALL
         DEPENDS ${DEST}
     )
 ENDMACRO(PREPROCESS_PATH_PERL)
 
-MACRO(RUN_POD2MAN SOURCE DEST SECTION CENTER RELEASE)
+MACRO(RUN_POD2MAN TARGET_NAME SOURCE DEST SECTION CENTER RELEASE)
     SET(PATH_PERL ${PERL_EXECUTABLE})
     ADD_CUSTOM_COMMAND(
         OUTPUT ${DEST}
     )
     # The custom command needs to be assigned to a target.
     ADD_CUSTOM_TARGET(
-        process_pod ALL
+        ${TARGET_NAME} ALL
         DEPENDS ${DEST}
     )
 ENDMACRO(RUN_POD2MAN)

src/wml_backend/p1_ipp/CMakeLists.txt

 SET(CMAKE_VERBOSE_MAKEFILE ON)
 include("../../Common.cmake")
 
-PREPROCESS_PATH_PERL("ipp.src" "ipp.pl")
-RUN_POD2MAN("ipp.src" "ipp.1" "1" "EN Tools" "EN Tools")
+PREPROCESS_PATH_PERL("ipp_preproc" "ipp.src" "ipp.pl")
+RUN_POD2MAN("ipp_pod" "ipp.src" "ipp.1" "1" "EN Tools" "EN Tools")

src/wml_backend/p5_divert/CMakeLists.txt

 SET(CMAKE_VERBOSE_MAKEFILE ON)
 include("../../Common.cmake")
 
-PREPROCESS_PATH_PERL("divert.src" "divert.pl")
-RUN_POD2MAN("divert.src" "divert.1" "1" "EN Tools" "EN Tools")
+PREPROCESS_PATH_PERL("divert_preproc" "divert.src" "divert.pl")
+RUN_POD2MAN("divert_pod" "divert.src" "divert.1" "1" "EN Tools" "EN Tools")

src/wml_backend/p6_asubst/CMakeLists.txt

 SET(CMAKE_VERBOSE_MAKEFILE ON)
 include("../../Common.cmake")
 
-PREPROCESS_PATH_PERL("asubst.src" "asubst.pl")
-RUN_POD2MAN("asubst.src" "asubst.1" "1" "EN Tools" "EN Tools")
+PREPROCESS_PATH_PERL("asubst_preproc" "asubst.src" "asubst.pl")
+RUN_POD2MAN("asubst_pod" "asubst.src" "asubst.1" "1" "EN Tools" "EN Tools")

src/wml_backend/p7_htmlfix/CMakeLists.txt

 SET(CMAKE_VERBOSE_MAKEFILE ON)
 include("../../Common.cmake")
 
-PREPROCESS_PATH_PERL("htmlfix.src" "htmlfix.pl")
-RUN_POD2MAN("htmlfix.src" "htmlfix.1" "1" "EN Tools" "EN Tools")
+PREPROCESS_PATH_PERL("htmlfix_preproc" "htmlfix.src" "htmlfix.pl")
+RUN_POD2MAN("htmlfix_pod" "htmlfix.src" "htmlfix.1" "1" "EN Tools" "EN Tools")

src/wml_backend/p8_htmlstrip/CMakeLists.txt

 SET(CMAKE_VERBOSE_MAKEFILE ON)
 include("../../Common.cmake")
 
-PREPROCESS_PATH_PERL("htmlstrip.src" "htmlstrip.pl")
-RUN_POD2MAN("htmlstrip.src" "htmlstrip.1" "1" "EN Tools" "EN Tools")
+PREPROCESS_PATH_PERL("htmlstrip_preproc" "htmlstrip.src" "htmlstrip.pl")
+RUN_POD2MAN("htmlstrip_pod" "htmlstrip.src" "htmlstrip.1" "1" "EN Tools" "EN Tools")

src/wml_backend/p9_slice/CMakeLists.txt

 SET(CMAKE_VERBOSE_MAKEFILE ON)
 include("../../Common.cmake")
 
-PREPROCESS_PATH_PERL("slice_main.pl" "slice")
-RUN_POD2MAN("slice.pod" "slice.1" "1" "EN Tools" "EN Tools")
+PREPROCESS_PATH_PERL("slice_preproc" "slice_main.pl" "slice")
+RUN_POD2MAN("slice_pod" "slice.pod" "slice.1" "1" "EN Tools" "EN Tools")