cmake set_source_files_properties not working properly -


I have a project in which. C is a group of files which need to be compiled as C files, but I need it to be compiled as C ++ code. I tried the solution I found, but did not work as expected. Instead of making filename.c only, it is compiled as C ++, it compiles all the files in my project as C ++ code. Without that call, all the files have been compiled as C.

I also tried:

  set_source_files_properties ($ {FILES_SRC} property languages ​​C) set_source_files_properties (filename.c property languages ​​CFX)   

Where FILES_SRC variable keeps all my source files.

I am CMK 2.8.12 and Visual Studio 11 ARM Generator.

Any ideas how can I fix this?

I finished compiling the library using C compiler and added a C ++ code to a different library For which I created a C interface so it can be told from my C library.

Comments

Popular posts from this blog

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -

ruby on rails - Add fingerprint to old paperclip attachments -