summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeFindEclipseCDT4.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2010-12-13 20:53:11 (GMT)
committerAlex Neundorf <neundorf@kde.org>2010-12-13 20:53:11 (GMT)
commit27ee50a7d81b4d5b975b5015897f88bbd6318118 (patch)
treeceb6778ab8e714e1c3dfa3ef0009f4548a5078d8 /Modules/CMakeFindEclipseCDT4.cmake
parent50d21d4251b179707b4569e5cfff0c9e65432273 (diff)
downloadCMake-27ee50a7d81b4d5b975b5015897f88bbd6318118.zip
CMake-27ee50a7d81b4d5b975b5015897f88bbd6318118.tar.gz
CMake-27ee50a7d81b4d5b975b5015897f88bbd6318118.tar.bz2
Add ECLIPSE_CDT4_GENERATE_SOURCE_PROJECT as a ADVANCED cache variable (#9631)
This variable has been supported since 2.6 I think, having it in the cache makes it easier to use (see bug report #9631) Alex
Diffstat (limited to 'Modules/CMakeFindEclipseCDT4.cmake')
-rw-r--r--Modules/CMakeFindEclipseCDT4.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CMakeFindEclipseCDT4.cmake b/Modules/CMakeFindEclipseCDT4.cmake
index b2a0299..fbcdc98 100644
--- a/Modules/CMakeFindEclipseCDT4.cmake
+++ b/Modules/CMakeFindEclipseCDT4.cmake
@@ -20,6 +20,10 @@ FIND_PROGRAM(CMAKE_ECLIPSE_EXECUTABLE NAMES eclipse DOC "The Eclipse executable"
# This variable is used by the Eclipse generator and appended to the make invocation commands.
SET(CMAKE_ECLIPSE_MAKE_ARGUMENTS "" CACHE STRING "Additional command line arguments when Eclipse invokes make. Enter e.g. -j<some_number> to get parallel builds")
+# This variable is used by the Eclipse generator in out-of-source builds only.
+SET(ECLIPSE_CDT4_GENERATE_SOURCE_PROJECT FALSE CACHE BOOL "If enabled, CMake will generate a source project for Eclipse in CMAKE_SOURCE_DIR")
+MARK_AS_ADVANCED(ECLIPSE_CDT4_GENERATE_SOURCE_PROJECT)
+
# The Eclipse generator needs to know the standard include path
# so that Eclipse ca find the headers at runtime and parsing etc. works better
# This is done here by actually running gcc with the options so it prints its