Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 503218 | Differences between
and this patch

Collapse All | Expand All

(-)Utilities/CMakeLists.txt.orig (-1 / +5 lines)
Lines 51-57 Link Here
51
  # Generate documentation for "ctest" executable.
51
  # Generate documentation for "ctest" executable.
52
  get_target_property(CMD ${target} LOCATION)
52
  get_target_property(CMD ${target} LOCATION)
53
  # only generate the documentation if the target is actually built
53
  # only generate the documentation if the target is actually built
54
  if(CMD)
54
  if(CMD AND NOT CMAKE_CROSSCOMPILING)
55
    add_custom_command(
55
    add_custom_command(
56
      OUTPUT ${CMake_BINARY_DIR}/Docs/${target}.txt
56
      OUTPUT ${CMake_BINARY_DIR}/Docs/${target}.txt
57
      ${${target}-PATH} # Possibly set PATH, see below.
57
      ${${target}-PATH} # Possibly set PATH, see below.
Lines 93-98 Link Here
93
# add the documentation for cmake itself
93
# add the documentation for cmake itself
94
94
95
get_target_property(CMD cmake LOCATION)
95
get_target_property(CMD cmake LOCATION)
96
if(NOT CMAKE_CROSSCOMPILING)
96
add_custom_command(
97
add_custom_command(
97
  OUTPUT ${CMake_BINARY_DIR}/Docs/cmake.txt
98
  OUTPUT ${CMake_BINARY_DIR}/Docs/cmake.txt
98
  COMMAND ${CMD}
99
  COMMAND ${CMD}
Lines 130-139 Link Here
130
  ${DOCBOOK_FILES}
131
  ${DOCBOOK_FILES}
131
  DESTINATION ${CMAKE_DOC_DIR}
132
  DESTINATION ${CMAKE_DOC_DIR}
132
  )
133
  )
134
endif()
133
install(FILES cmake.m4 DESTINATION share/aclocal)
135
install(FILES cmake.m4 DESTINATION share/aclocal)
134
136
135
# Drive documentation generation.
137
# Drive documentation generation.
138
if(NOT CMAKE_CROSSCOMPILING)
136
add_custom_target(documentation ALL DEPENDS ${DOC_FILES} ${CMake_BINARY_DIR}/Docs/cmake.txt )
139
add_custom_target(documentation ALL DEPENDS ${DOC_FILES} ${CMake_BINARY_DIR}/Docs/cmake.txt )
140
endif()
137
141
138
# Documentation testing.
142
# Documentation testing.
139
if(BUILD_TESTING)
143
if(BUILD_TESTING)

Return to bug 503218