File: DetectLegacyBuild.cmake

package info (click to toggle)
therion 6.3.4-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,544 kB
  • sloc: cpp: 195,273; tcl: 19,779; ansic: 8,434; perl: 1,895; makefile: 1,281; python: 255; asm: 219; sh: 104
file content (4 lines) | stat: -rw-r--r-- 330 bytes parent folder | download | duplicates (2)
1
2
3
4
# Prevent building with CMake when there are files in the source dir generated by the legacy Therion Makefile.
if (EXISTS ${CMAKE_SOURCE_DIR}/thversion.h)
    message(FATAL_ERROR "Using old Therion Makefile together with new CMake build is not supported, please run \"make clean\" in the source directory and try again.")
endif()