Unable to open file DFM using cmake on c++ builder 10.3

Viewed 146

I am getting the following linker error in my project.

Error: Unable to open file 'FOO.DFM'

I am compiling with the old borland compiler (not clang) and building using cmake rather than the IDE. I have added the directory of the dfm file to target_include_directories. Compilation is successful but having this issue with multiple dfm files at the linking stage.

In the .cbproj file of the ide this is used like the following way:

</CppCompile>
<FormResources Include="foo.dfm"/>

UPDATE:

I'm wondering is this because the delphi compiling isn't occurring through cmake (dcc32). Is this supported or do you need to have a custom add_custom_command in your cmake to handle this. C++ Builder docs doesn't seem to mention any delphi compilation.

In the IDE build output one of the initial tasks is the delphi compilation, you can see c:\program files (x86)\embarcadero\studio\20.0\bin\dcc32.exe -B but this is not happening in cmake output

0 Answers
Related