summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@acm.org>2015-03-04 20:43:49 -0800
committerTim Kientzle <kientzle@acm.org>2015-03-04 20:43:49 -0800
commit3379411e1f91b0c5928e4e45287cd488b4fccf1c (patch)
treed7b717069785584c183cfbe591ee7ca6b7df6964 /build
parent41c4da484d3a21ea5be6dbf10d3bf5786caed9dc (diff)
parent219c7a42a54c668459d0002bab2d8a0e635bf62b (diff)
downloadlibarchive-3379411e1f91b0c5928e4e45287cd488b4fccf1c.tar.gz
Merge pull request #101 from chenxiaolong/install
Allow library installation to be disabled in CMake
Diffstat (limited to 'build')
-rw-r--r--build/cmake/CreatePkgConfigFile.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/cmake/CreatePkgConfigFile.cmake b/build/cmake/CreatePkgConfigFile.cmake
index f96bbef0..fc8529a5 100644
--- a/build/cmake/CreatePkgConfigFile.cmake
+++ b/build/cmake/CreatePkgConfigFile.cmake
@@ -27,5 +27,7 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/build/pkgconfig/libarchive.pc.in
${CMAKE_CURRENT_SOURCE_DIR}/build/pkgconfig/libarchive.pc
@ONLY)
# And install it, of course ;).
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/build/pkgconfig/libarchive.pc
- DESTINATION "lib/pkgconfig")
+IF(ENABLE_INSTALL)
+ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/build/pkgconfig/libarchive.pc
+ DESTINATION "lib/pkgconfig")
+ENDIF()