[CMake] modify cmake build arguments

Hex hex7c3 at gmail.com
Fri Aug 30 06:18:29 EDT 2019


thank you this is exactly what I am looking for. It is working well.

>From the documentation:

«It is loaded after CMake’s builtin compiler and platform information
modules have been loaded but before the information is used.»

since CMakeCInformation.cmake:

# compile a C file into an object file
if(NOT CMAKE_C_COMPILE_OBJECT)
  set(CMAKE_C_COMPILE_OBJECT
    "<CMAKE_C_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -o    -c <SOURCE>")
endif()


CMAKE_USER_MAKE_RULES_OVERRIDE_C must be set before the language is set,
i.e. before any `enable_language()` or `project()` instruction.



--
Sent from: http://cmake.3232098.n2.nabble.com/


More information about the CMake mailing list