summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_compile/ConfigureLog.cmake
blob: 511ade93d9c9badc946ae888e68c0535023ac6b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
enable_language(C)

try_compile(COMPILE_RESULT
  SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/ConfigureLog-bad.c
  LOG_DESCRIPTION "Source that should not compile."
  )

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

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