summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-08-25 02:02:40 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:47 +0200
commit5a7c21ddccb494625e23389942a8c4124d098200 (patch)
tree47738b7f10e7209d34339ada4b1d945e49ff2d68
parent1881962976d9e010946cf49048b53452988e6de5 (diff)
Comment apparently uneeded section.
Let's see if used. Change-Id: Iaa5cf37f0a7964e797cdc99c9d7bdbb93f8b54e4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-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})