From: Peter Lemenkov Date: Wed, 31 Mar 2010 11:53:48 +0400 Subject: [PATCH] Allow rewrite of custom makefiles by CMake Signed-off-by: Peter Lemenkov diff --git a/CMakeLists.txt b/CMakeLists.txt index def471f3..0e2eb32d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,15 +29,6 @@ MESSAGE(STATUS "Configuring ${CMAKE_PROJECT_NAME} v. ${SEMS_VERSION}") SET(SEMS_APP_NAME "sems") -IF(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE) - message(FATAL_ERROR "In-source builds are not allowed. -CMake would overwrite all makefiles distributed with SEMS. -Please create a directory and run cmake from there, passing the path -to this source directory as the last argument. -This process created the file `CMakeCache.txt' and the directory `CMakeFiles'. -Please delete them.") -ENDIF(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE) - OPTION(SEMS_USE_SPANDSP "Build with spandsp" OFF) OPTION(SEMS_USE_LIBSAMPLERATE "Build with libsamplerate" OFF) OPTION(SEMS_USE_ZRTP "Build with ZRTP" OFF)