summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpast-due <30942300+past-due@users.noreply.github.com>2019-04-17 14:49:04 -0400
committerSteven G. Johnson <stevenj@mit.edu>2019-04-17 14:49:04 -0400
commit416749803be5f9d8903c9d95c92153370f890db6 (patch)
tree4740a5536c01740d30ce38f2264d31ddef52b4db
parente57cb43f2c4992b67308dbb5475dec6b095e6951 (diff)
downloadlibutf8proc-416749803be5f9d8903c9d95c92153370f890db6.tar.gz
libutf8proc-416749803be5f9d8903c9d95c92153370f890db6.tar.bz2
[CMake] Add UTF8PROC_NO_INSTALL option (#152)
* [CMake] Add UTF8PROC_NO_INSTALL option * change to UTF8PROC_INSTALL
-rw-r--r--CMakeLists.txt20
1 files changed, 12 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d2af376..c5deb7b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,6 +13,8 @@ set(SO_MAJOR 2)
set(SO_MINOR 2)
set(SO_PATCH 0)
+option(UTF8PROC_INSTALL "Enable installation of utf8proc" On)
+
add_library (utf8proc
utf8proc.c
utf8proc.h
@@ -46,12 +48,14 @@ set_target_properties (utf8proc PROPERTIES
SOVERSION ${SO_MAJOR}
)
-install(TARGETS utf8proc
- RUNTIME DESTINATION bin
- LIBRARY DESTINATION lib
- ARCHIVE DESTINATION lib)
+if (UTF8PROC_INSTALL)
+ install(TARGETS utf8proc
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib)
-install(
- FILES
- "${PROJECT_SOURCE_DIR}/utf8proc.h"
- DESTINATION include)
+ install(
+ FILES
+ "${PROJECT_SOURCE_DIR}/utf8proc.h"
+ DESTINATION include)
+endif()