diff options
author | Tim Kientzle <kientzle@acm.org> | 2015-03-04 20:43:49 -0800 |
---|---|---|
committer | Tim Kientzle <kientzle@acm.org> | 2015-03-04 20:43:49 -0800 |
commit | 3379411e1f91b0c5928e4e45287cd488b4fccf1c (patch) | |
tree | d7b717069785584c183cfbe591ee7ca6b7df6964 /build | |
parent | 41c4da484d3a21ea5be6dbf10d3bf5786caed9dc (diff) | |
parent | 219c7a42a54c668459d0002bab2d8a0e635bf62b (diff) | |
download | libarchive-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.cmake | 6 |
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() |