Commits

Shlomi Fish  committed 94a518d

Convert Common.cmake to Shlomif_Common.

  • Participants
  • Parent commits 6e2de58

Comments (0)

Files changed (3)

File pthreads/CMakeLists.txt

-INCLUDE( "${CMAKE_CURRENT_SOURCE_DIR}/Common.cmake" )
+INCLUDE(Shlomif_Common)
 
 SET(DEBUG "" CACHE BOOL "Add debugging information")
 # This is the equivalent to perform a "make dist"/"make distdir" etc.

File pthreads/Common.cmake

-INCLUDE(FindPerl)
-IF (NOT PERL_FOUND)
-    MESSAGE ( FATAL_ERROR "perl must be installed")
-ENDIF(NOT PERL_FOUND)
-
-MACRO(CHOMP VAR)
-    STRING(REGEX REPLACE "[\r\n]+$" "" ${VAR} "${${VAR}}")
-ENDMACRO(CHOMP)
-
-MACRO(RUN_POD2MAN SOURCE DEST SECTION CENTER RELEASE)
-    SET(PATH_PERL ${PERL_EXECUTABLE})
-    ADD_CUSTOM_COMMAND(
-        OUTPUT ${DEST}
-        COMMAND ${PATH_PERL}
-        ARGS "-e"
-        "my (\$src, \$dest, \$sect, \$center, \$release) = @ARGV; my \$pod = qq{Hoola.pod}; use File::Copy; copy(\$src, \$pod); system(qq{pod2man --section=\$sect --center=\"\$center\" --release=\"\$release\" \$pod > \$dest}); unlink(\$pod)"
-        ${SOURCE}
-        ${DEST}
-        ${SECTION}
-        "${CENTER}"
-        "${RELEASE}"
-        MAIN_DEPENDENCY ${SOURCE}
-        VERBATIM
-    )
-    ADD_CUSTOM_TARGET(
-        POD_${DEST} ALL
-        DEPENDS ${DEST}
-    )
-ENDMACRO(RUN_POD2MAN)
-
-MACRO(INSTALL_MAN SOURCE SECTION)
-    INSTALL(
-        FILES
-            ${SOURCE}
-        DESTINATION
-            "share/man/man${SECTION}"
-   )
-ENDMACRO(INSTALL_MAN)
-

File pthreads/man/CMakeLists.txt

 
 SET(CMAKE_VERBOSE_MAKEFILE ON)
 
-INCLUDE( "${CMAKE_CURRENT_SOURCE_DIR}/../Common.cmake" )
-
 RUN_POD2MAN(
     "${CMAKE_CURRENT_SOURCE_DIR}/pthread_rwlock_fcfs.pod"
     "pthread_rwlock_fcfs.3thr"