1
0

CustomCompileRule.cmake 336 B

123456
  1. enable_language(C)
  2. set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
  3. add_library(empty STATIC empty.c)
  4. string(REPLACE "<DEFINES>" "" CMAKE_C_COMPILE_OBJECT "${CMAKE_C_COMPILE_OBJECT}")
  5. string(REPLACE "<INCLUDES>" "" CMAKE_C_COMPILE_OBJECT "${CMAKE_C_COMPILE_OBJECT}")
  6. string(REPLACE "<FLAGS>" "" CMAKE_C_COMPILE_OBJECT "${CMAKE_C_COMPILE_OBJECT}")