From 9bc2f320b890171219df918eed3689215a1d93eb Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Sun, 11 Dec 2011 11:25:30 +0000
Subject: [PATCH] - Added option to prevent installation of header files
---
include/CMakeLists.txt | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
index c60cd6bf7..8468871dc 100644
--- a/include/CMakeLists.txt
+++ b/include/CMakeLists.txt
@@ -1,5 +1,11 @@
-FILE(GLOB headers "polarssl/*.h")
+option(INSTALL_POLARSSL_HEADERS "Install PolarSSL headers." ON)
-INSTALL(FILES ${headers}
+if(INSTALL_POLARSSL_HEADERS)
+
+file(GLOB headers "polarssl/*.h")
+
+install(FILES ${headers}
DESTINATION include/polarssl
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
+
+endif(INSTALL_POLARSSL_HEADERS)