summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2015-04-02 01:38:31 +0100
committerPeter Powell <petpow@saberuk.com>2015-04-02 01:38:31 +0100
commit82f5d1d61d77403ddee3c8da4733153ab731b601 (patch)
tree419581dfe8e7a8a59c28761de09a717c0282b77b /CMakeLists.txt
parentabc4851287166a8b4365dd3da406cea15d8374bb (diff)
Remove an old Autotools limitation.
This is not needed anymore as support for Autotools was removed.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 0 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e1f2bf882..9759c3c34 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,11 +10,6 @@ if(COMMAND cmake_policy)
endif(POLICY CMP0007)
endif(COMMAND cmake_policy)
-# If the Source dir and the Binary dir are the same, we are building in-source, which we will disallow due to Autotools being there (but only on non-Windows)
-if(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR} AND NOT WIN32)
- message(FATAL_ERROR "You can not use CMake to build Anope from the root of it's source tree! Remove the CMakeCache.txt file from this directory, then create a separate directory (either below this directory or elsewhere), and then re-run CMake from there.")
-endif(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR} AND NOT WIN32)
-
# Set the project as C++ primarily, but have C enabled for the checks required later
project(Anope CXX)
enable_language(C)