Re: [Rdkit-discuss] passing options to javac when building from source

2020-01-06 Thread Tim Dudgeon
Still no joy. I tried adding this to the CMakeLists.txt files in the top level dir and in Code/JavaWrappers/ but it seem to have no effect. I'm no cmake expert so I might not be doing this right. Tim On 03/01/2020 21:15, Paolo Tosco wrote: Hi Tim, based on

Re: [Rdkit-discuss] passing options to javac when building from source

2020-01-06 Thread Tim Dudgeon
I've only built on Linux so can't comment on what works on Mac. Here is an example Dockerfile that builds pretty well everything: https://github.com/InformaticsMatters/docker-rdkit/blob/master/Dockerfile-build-debian#L70-L81 On 06/01/2020 06:17, Francois Berenger wrote: Hi Tim, How do you

Re: [Rdkit-discuss] passing options to javac when building from source

2020-01-05 Thread Francois Berenger
Hi Tim, How do you compile rdkit for Java? Last time I tried on a Mac, it did not work: https://github.com/rdkit/homebrew-rdkit/issues/38 Thanks a lot, F. On 26/12/2019 23:22, Tim Dudgeon wrote: When building the Java wrappers from source (the -DRDK_BUILD_SWIG_WRAPPERS=ON option) is possible

Re: [Rdkit-discuss] passing options to javac when building from source

2020-01-03 Thread Paolo Tosco
Hi Tim, based on https://cmake.org/cmake/help/latest/module/UseJava.html set(CMAKE_JAVA_COMPILE_FLAGS"-source 8") might do the trick. Cheers, p. On 03/01/2020 17:41, Tim Dudgeon wrote: Hi Paolo, I'm afraid that's not working for me. Still getting Java11 class files. My cmake command is:

Re: [Rdkit-discuss] passing options to javac when building from source

2020-01-03 Thread Tim Dudgeon
Hi Paolo, I'm afraid that's not working for me. Still getting Java11 class files. My cmake command is: cmake -Wno-dev\   -DPYTHON_EXECUTABLE=/usr/bin/python3\   -DRDK_BUILD_INCHI_SUPPORT=ON\   -DRDK_BUILD_AVALON_SUPPORT=ON\   -DRDK_BUILD_PYTHON_WRAPPERS=ON\   -DRDK_BUILD_SWIG_WRAPPERS=ON\  

Re: [Rdkit-discuss] passing options to javac when building from source

2019-12-26 Thread Paolo Tosco
Hi Tim, Try adding this to your CMake command: -DJAVA_COMPILE="/usr/bin/javac -source 8" Cheers, p. On 26/12/2019 15:22, Tim Dudgeon wrote: When building the Java wrappers from source (the -DRDK_BUILD_SWIG_WRAPPERS=ON option) is possible to specify options to pass on to javac.

[Rdkit-discuss] passing options to javac when building from source

2019-12-26 Thread Tim Dudgeon
When building the Java wrappers from source (the -DRDK_BUILD_SWIG_WRAPPERS=ON option) is possible to specify options to pass on to javac. Specifically I'm wanting to use the '-source 8' option as most distros now come with java11 (and make it difficult to install an earlier one) but I want