curl: Skip building docs within CMake

This commit is contained in:
Brad King
2017-05-11 10:58:27 -04:00
parent 299975908a
commit 11ba72c6d6

View File

@@ -290,8 +290,11 @@ if(ENABLE_MANUAL)
message(WARNING "Found no *nroff program")
endif()
endif()
if(0) # This code not needed for building within CMake.
# Required for building manual, docs, tests
find_package(Perl REQUIRED)
endif()
# We need ansi c-flags, especially on HP
set(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}")
@@ -1125,7 +1128,9 @@ function(TRANSFORM_MAKEFILE_INC INPUT_FILE OUTPUT_FILE)
endfunction()
if(0) # This code not needed for building within CMake.
add_subdirectory(docs)
endif()
add_subdirectory(lib)
if(BUILD_CURL_EXE)
add_subdirectory(src)