12345678910111213141516171819202122232425262728293031323334353637 |
- file(MD5 ${CMAKE_C_COMPILER} CMAKE_C_COMPILER_MD5_SUM)
- set(TOOLCHAIN_SIGNATURE ${CMAKE_C_COMPILER_MD5_SUM})
- string(MD5 COMPILER_SIGNATURE ${CMAKE_C_COMPILER}_${CMAKE_C_COMPILER_ID}_${CMAKE_C_COMPILER_VERSION})
- set(TOOLCHAIN_SIGNATURE ${TOOLCHAIN_SIGNATURE}_${COMPILER_SIGNATURE})
- include(${CMAKE_CURRENT_LIST_DIR}/compiler/compiler_flags_template.cmake)
- include(${CMAKE_CURRENT_LIST_DIR}/linker/linker_flags_template.cmake)
- include(${TOOLCHAIN_ROOT}/cmake/compiler/${COMPILER}/compiler_flags.cmake OPTIONAL)
- include(${TOOLCHAIN_ROOT}/cmake/linker/${LINKER}/linker_flags.cmake OPTIONAL)
|