Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4178

Java libraries missing from package when using cmake

    XMLWordPrintableJSON

    Details

      Description

      The CMake infrastructure fails to include the java libraries in the generated package. Instead, the libraries are wrongly installed on the build host. The problem is likely due to the following line:

      lib/java/CMakeLists.txt:

          [...]
          # Hook the ant install task into CMake install                                                                                                                                                                  
          install(CODE "execute_process(
              COMMAND ${Ant_EXECUTABLE} ${ANT_FLAGS} install                                                                                                                                                              
              -Dbuild.dir=\"${CMAKE_CURRENT_BINARY_DIR}\"
              -Dinstall.path=\"${JAVA_INSTALL_DIR}\" -Dinstall.javadoc.path=\"${JAVA_DOC_INSTALL_DIR}\" -f build.xml
              WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}                                                                                                                                                               
          )")
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jking3 James E. King III
                Reporter:
                alacombe Arnaud Lacombe
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: