1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-31 00:03:07 +03:00

cmake: Do not use CMAKE_(SOURCE|BINARY)_DIR

This commit is contained in:
Douglas Heriot
2015-06-24 18:04:26 +02:00
committed by Andreas Schneider
parent 5478de1a64
commit a65af1b3b8
5 changed files with 7 additions and 7 deletions

View File

@ -24,7 +24,7 @@ set(LIBRARY_SOVERSION "4")
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
set(CMAKE_MODULE_PATH set(CMAKE_MODULE_PATH
${CMAKE_SOURCE_DIR}/cmake/Modules ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules
) )
# add definitions # add definitions

View File

@ -4,10 +4,10 @@
### general settings ### general settings
set(CPACK_PACKAGE_NAME ${APPLICATION_NAME}) set(CPACK_PACKAGE_NAME ${APPLICATION_NAME})
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The SSH library") set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The SSH library")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README") set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
set(CPACK_PACKAGE_VENDOR "The SSH Library Development Team") set(CPACK_PACKAGE_VENDOR "The SSH Library Development Team")
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME}) set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING") set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
### versions ### versions

View File

@ -1,3 +1,3 @@
project(headers C) project(libssh-headers-x C)
add_subdirectory(libssh) add_subdirectory(libssh)

View File

@ -1,12 +1,12 @@
project(libssh-library C) project(libssh-library C)
set(LIBSSH_PUBLIC_INCLUDE_DIRS set(LIBSSH_PUBLIC_INCLUDE_DIRS
${CMAKE_SOURCE_DIR}/include ${libssh_SOURCE_DIR}/include
CACHE INTERNAL "libssh public include directories" CACHE INTERNAL "libssh public include directories"
) )
set(LIBSSH_PRIVATE_INCLUDE_DIRS set(LIBSSH_PRIVATE_INCLUDE_DIRS
${CMAKE_BINARY_DIR} ${libssh_BINARY_DIR}
) )
set(LIBSSH_LINK_LIBRARIES set(LIBSSH_LINK_LIBRARIES

View File

@ -1,4 +1,4 @@
project(tests C) project(libssh-tests C)
if (BSD OR SOLARIS OR OSX) if (BSD OR SOLARIS OR OSX)
find_package(Argp) find_package(Argp)