File: OutOfSourceBuild.cmake

package info (click to toggle)
ponyprog 3.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,752 kB
  • sloc: cpp: 33,187; python: 981; sh: 507; makefile: 36
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)