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.

AsmOp.cmake 658B

12345678910111213141516171819
  1. # Check for assembler option specified
  2. MACRO(asm_op output_var description)
  3. IF(NOT ${output_var})
  4. file(WRITE "${CMAKE_BINARY_DIR}/asm.S" "${ASM_CODE}")
  5. try_compile(HAVE_OP
  6. "${CMAKE_BINARY_DIR}"
  7. "${CMAKE_BINARY_DIR}/asm.S"
  8. CMAKE_FLAGS "-DCMAKE_ASM_LINK_EXECUTABLE='echo not linking now...'")
  9. if(HAVE_OP)
  10. MESSAGE(STATUS "Compilation of ${description} asm set is supported")
  11. else()
  12. MESSAGE(STATUS "Compilation of ${description} asm set is -NOT- supported")
  13. endif()
  14. set(${output_var} "${HAVE_OP}" CACHE INTERNAL "${description}")
  15. ENDIF()
  16. ENDMACRO()