[CMake] modify cmake build arguments
hex
hex7c3 at gmail.com
Fri Aug 30 08:07:11 EDT 2019
It does work after setting CMAKE_C_SOURCE_FILE_EXTENSIONS inside the
override. It should be set in a CMakeDetermineCompiler file though. I'll
add language support for it next.
As a side note, wouldn't it be better to replace
CMake/Modules/CMakeCCompiler.cmake.in:
/set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)/
with:
/list(APPEND CMAKE_C_SOURCE_FILE_EXTENSIONS c;m )/
?
On 30/08/2019 12:41, hex wrote:
> I am still facing a problem: The build step is skipped only the link
> step is performed (I missed that in the beginning). It seems like the
> build step does not have any dependencies.
>
>
> This is because different file extension are used. I cannot set
> CMAKE_C_SOURCE_FILE_EXTENSIONS because I believe `project` redefines
> the variable. If I set it afterwards it does not take effect. For now
> it works if I change the source file extension.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190830/efd45298/attachment.html>
More information about the CMake
mailing list