Is there a cmakelists.txt file of openjdk11
Robin Westberg
robin.westberg at oracle.com
Tue Dec 18 06:29:24 UTC 2018
(moving to build-dev)
Hi,
As of version 2018.2 [1], as an alternative to CMakeLists.txt, CLion can make use of compile_commands.json [2] as well. After configuring your build, you can generate such a file with the JDK make system:
$ make compile-commands
Or alternatively, if you are only interested in hotspot sources:
$ make compile-commands-hotspot
The compile_commands.json file will be created in the build/<profile>/ folder. Simply opening that folder from CLion should work fine, but you may want to edit some project properties afterwards to improve the appearance of the source tree listing.
Best regards,
Robin
[1]: https://blog.jetbrains.com/clion/2018/08/working-with-makefiles-in-clion-using-compilation-db/
[2]: http://clang.llvm.org/docs/JSONCompilationDatabase.html
> On 18 Dec 2018, at 04:33, David Holmes <david.holmes at oracle.com> wrote:
>
> I should add that this was raised in the past. Not sure what happened to it:
>
> http://mail.openjdk.java.net/pipermail/build-dev/2017-March/018846.html
>
> but again, take this up on build-dev.
>
> David
>
> On 18/12/2018 12:36 pm, David Holmes wrote:
>> Hi,
>> On 18/12/2018 12:29 pm, 毛宝龙 wrote:
>>> Hi all, we need cmakelists.txt to make ability of clion could be the ide for openjdk. Because clion support cmake only, but not makefile project. In some famous c comunity, cmake is more and more popular. So is there a cmakelists.txt?
>> No there isn't. I suggest discussing on build-dev at openjdk.java.net.
>> Cheers,
>> David
>>>
>>>
>>>
>>>
More information about the build-dev
mailing list