File: K3DOutOfSourceBuild.cmake

package info (click to toggle)
k3d 0.8.0.2-18
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 40,948 kB
  • sloc: cpp: 171,303; ansic: 24,129; xml: 6,995; python: 5,796; makefile: 671; sh: 22
file content (6 lines) | stat: -rw-r--r-- 295 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
# Disallow in-source build
STRING(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" K3D_IN_SOURCE)
IF(K3D_IN_SOURCE)
	MESSAGE(FATAL_ERROR "K-3D requires an out of source build. Please create a separate build directory and run 'cmake path_to_k3d [options]' there.")
ENDIF(K3D_IN_SOURCE)