File: OutOfSourceBuild.cmake

package info (click to toggle)
httraqt 1.4.11-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 2,780 kB
  • sloc: cpp: 7,970; sh: 177; makefile: 13
file content (6 lines) | stat: -rw-r--r-- 317 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}" HTTRAQT_IN_SOURCE)
IF(HTTRAQT_IN_SOURCE)
    MESSAGE(FATAL_ERROR "HTTraQt requires an out of source build. Please create a separate build directory and run 'cmake path_to_httraqt [options]' there.")
ENDIF(HTTRAQT_IN_SOURCE)