File: OutOfSourceBuild.cmake

package info (click to toggle)
ponyprog 3.1.4%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,904 kB
  • sloc: cpp: 35,932; python: 981; sh: 565; xml: 67; makefile: 45; ansic: 38
file content (6 lines) | stat: -rw-r--r-- 322 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
# Disallow in-source build
STRING(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" PONYPROG_IN_SOURCE)
IF(PONYPROG_IN_SOURCE)
    MESSAGE(FATAL_ERROR "Ponyprog requires an out of source build. Please create a separate build directory and run 'cmake path_to_ponyprog [options]' there.")
ENDIF(PONYPROG_IN_SOURCE)