File: InstallScript2.cmake

package info (click to toggle)
cmake 3.6.2-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 61,464 kB
  • sloc: ansic: 214,251; cpp: 167,437; yacc: 3,236; sh: 2,916; xml: 2,476; lex: 1,188; python: 530; asm: 334; lisp: 274; objc: 157; java: 124; f90: 113; fortran: 106; perl: 99; makefile: 78; pascal: 63; tcl: 55; php: 25; ruby: 22
file content (14 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
message("This is install script 2.")
if(INSTALL_SCRIPT_1_DID_RUN)
  message("Install script ordering works.")
else()
  message(FATAL_ERROR "Install script 1 did not run before install script 2.")
endif()
if(INSTALL_CODE_DID_RUN)
  message("Install code ordering works.")
else()
  message(FATAL_ERROR "Install script 2 did not run after install code.")
endif()
file(WRITE "${CMAKE_INSTALL_PREFIX}/MyTest/InstallScriptOut.cmake"
  "set(CMAKE_INSTALL_SCRIPT_DID_RUN 1)\n"
  )