CMakeLists.txt 319 B

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