summaryrefslogtreecommitdiffstats
path: root/cmake/cmake.d/01-build_options.cmake
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-08-25 02:02:40 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-08-25 02:02:40 +0200
commitbd08c67784b192cf43ede2eeae929a709f16187a (patch)
tree0054fdbe4716afcd3179d3b26319177a43ce6f44 /cmake/cmake.d/01-build_options.cmake
parentcf98a0c4992fe307b5fff068b8fa50dbb64561cd (diff)
Comment apparently uneeded section.
Let's see if used. Change-Id: Iaa5cf37f0a7964e797cdc99c9d7bdbb93f8b54e4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake/cmake.d/01-build_options.cmake')
-rw-r--r--cmake/cmake.d/01-build_options.cmake15
1 files changed, 9 insertions, 6 deletions
diff --git a/cmake/cmake.d/01-build_options.cmake b/cmake/cmake.d/01-build_options.cmake
index 4fb10ef..84649fc 100644
--- a/cmake/cmake.d/01-build_options.cmake
+++ b/cmake/cmake.d/01-build_options.cmake
@@ -76,12 +76,15 @@ foreach(option ${RELEASE_COMPILE_OPTIONS})
endforeach()
# Env variable overload default
-if(DEFINED ENV{INSTALL_PREFIX})
- set(INSTALL_PREFIX $ENV{INSTALL_PREFIX} CACHE PATH "The path where to install")
-else()
- set(INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/Install" CACHE PATH "The path where to install")
-endif()
-set(CMAKE_INSTALL_PREFIX ${INSTALL_PREFIX} CACHE STRING "Installation Prefix")
+# Disabled by default now. Tell me if you need really it
+# but you should not have needs for that since you can
+# set CMAKE_INSTALL_PREFIX in your config.cmake.
+#if(DEFINED ENV{INSTALL_PREFIX})
+# set(INSTALL_PREFIX $ENV{INSTALL_PREFIX} CACHE PATH "The path where to install")
+#else()
+# set(INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/Install" CACHE PATH "The path where to install")
+#endif()
+#set(CMAKE_INSTALL_PREFIX ${INSTALL_PREFIX} CACHE PATH "Installation Prefix")
# Loop on required package and add options
foreach (PKG_CONFIG ${PKG_REQUIRED_LIST})