Feature #827

Feature #418: === Configuration & Build ===

Forbid in-source build

Added by pospelov over 5 years ago. Updated almost 5 years ago.

Status:ArchivedStart date:29 Sep 2014
Priority:NormalDue date:
Assignee:wuttke% Done:

100%

Category:-
Target version:Sprint 26

Description

Cmake should warn user if he tries to build in source directory.
It would be also nice to clean CMake remnants after such attempt.

History

#1 Updated by wuttke over 5 years ago

  • File PreventInSourceBuilds.cmake added
  • Description updated (diff)

Add this to CMakeLists.txt:

set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules) # probably it's there already
include(PreventInSourceBuilds)

to include the attached file (from Frida).

If you find a way to clean up automatically, then please contribute it back to Frida.

#2 Updated by wuttke about 5 years ago

  • Status changed from New to Resolved
  • Assignee set to wuttke

Resolved in f5f3f775f57, using the module from Frida as described in my preceding note.

#3 Updated by wuttke about 5 years ago

  • File deleted (PreventInSourceBuilds.cmake)

#4 Updated by wuttke about 5 years ago

  • Target version set to Sprint 26
  • % Done changed from 0 to 100

#5 Updated by pospelov almost 5 years ago

  • Status changed from Resolved to Archived

Also available in: Atom PDF