summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_run/ConfigureLog.cmake
blob: e39310cd7324719478c5e199a269500e8dc1be8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
try_run(RUN_RESULT COMPILE_RESULT
  SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/ConfigureLog-bad.c
  LOG_DESCRIPTION "Source that should not compile."
  )

try_run(RUN_RESULT COMPILE_RESULT
  SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/ConfigureLog-test.c
  NO_LOG
  )

try_run(RUN_RESULT COMPILE_RESULT
  SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/ConfigureLog-test.c
  LOG_DESCRIPTION "Source that should compile."
  )

try_run(RUN_RESULT COMPILE_RESULT
  SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/ConfigureLog-test.c
  RUN_OUTPUT_VARIABLE RUN_OUTPUT
  )

try_run(RUN_RESULT COMPILE_RESULT
  SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/ConfigureLog-test.c
  RUN_OUTPUT_STDOUT_VARIABLE RUN_STDOUT
  RUN_OUTPUT_STDERR_VARIABLE RUN_STDERR
  )