You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
319 B

cmake_minimum_required(VERSION 3.12)
message("${x}")
math(EXPR x "${x} + 1")
try_compile(result
"${CMAKE_CURRENT_BINARY_DIR}/try_compile"
"${CMAKE_CURRENT_SOURCE_DIR}"
try_compile
CMAKE_FLAGS -Dx:STRING=${x}
)
# We put this last to avoid prematurely triggering the recursion limit
project(try_compile NONE)