summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_compile/TryRunArgs.cmake
blob: e4cb1fe2a262074aee2fad31207ea76887facccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
include(${CMAKE_CURRENT_SOURCE_DIR}/${try_compile_DEFS})

enable_language(C)

try_compile(RESULT ${try_compile_bindir_or_SOURCES}
  ${CMAKE_CURRENT_SOURCE_DIR}/src.c
  COPY_FILE "${CMAKE_CURRENT_BINARY_DIR}/out.bin"
  COMPILE_OUTPUT_VARIABLE compOutputVar
  RUN_OUTPUT_VARIABLE runOutputVar
  RUN_OUTPUT_STDOUT_VARIABLE runOutputStdOutVar
  RUN_OUTPUT_STDERR_VARIABLE runOutputStdErrVar
  WORKING_DIRECTORY runWorkDir
  ARGS runArgs
  )