File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 3.17 FATAL_ERROR)
33
44PROJECT (libarchive C )
55#
6+ # Include standard installation directories
7+ include (GNUInstallDirs )
8+ #
69SET (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR } /build/cmake" )
710if (NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY )
811 set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${libarchive_BINARY_DIR } /bin)
Original file line number Diff line number Diff line change @@ -266,10 +266,6 @@ IF(NOT WIN32 OR CYGWIN OR NOT BUILD_SHARED_LIBS)
266266 SET_TARGET_PROPERTIES (archive_static PROPERTIES OUTPUT_NAME archive)
267267ENDIF (NOT WIN32 OR CYGWIN OR NOT BUILD_SHARED_LIBS )
268268
269- if (NOT DEFINED CMAKE_INSTALL_LIBDIR)
270- set (CMAKE_INSTALL_LIBDIR "lib" )
271- endif ()
272-
273269IF (ENABLE_INSTALL)
274270 # How to install the libraries
275271 IF (BUILD_SHARED_LIBS )
You can’t perform that action at this time.
0 commit comments