Debian Codegraph @

Tests/RunCMake/MaxRecursionDepth/try_compile/CMakeLists.txt

raw
1 cmake_minimum_required(VERSION 3.12)
2
3 message("${x}")
4 math(EXPR x "${x} + 1")
5 try_compile(result
6 "${CMAKE_CURRENT_BINARY_DIR}/try_compile"
7 "${CMAKE_CURRENT_SOURCE_DIR}"
8 try_compile
9 CMAKE_FLAGS -Dx:STRING=${x}
10 )
11
12 # We put this last to avoid prematurely triggering the recursion limit
13 project(try_compile NONE)