Merge lp:~zorba-coders/zorba/build-util_jvm_module into lp:zorba/util-jvm-module

Proposed by Matthias Brantner
Status: Merged
Approved by: Chris Hillery
Approved revision: 9
Merged at revision: 9
Proposed branch: lp:~zorba-coders/zorba/build-util_jvm_module
Merge into: lp:zorba/util-jvm-module
Diff against target: 21 lines (+7/-3)
1 file modified
src/CMakeLists.txt (+7/-3)
To merge this branch: bzr merge lp:~zorba-coders/zorba/build-util_jvm_module
Reviewer Review Type Date Requested Status
Chris Hillery Approve
Matthias Brantner Approve
Review via email: mp+106707@code.launchpad.net

Commit message

also link against libzorba

Description of the change

also link against libzorba

To post a comment you must log in.
Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
Chris Hillery (ceejatec) wrote :

Hmm... doing it this way means that the util-jvm module can only be built as part of a Zorba build. It won't be buildable separately against a binary Zorba installation. That's *probably* OK, at least for now.

We also need to verify that this still works after you do a "make install" on a Mac. Matthias, can you check that?

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

The attempt to merge lp:~zorba-coders/zorba/build-util_jvm_module into lp:zorba/util-jvm-module failed. Below is the output from the failed tests.

CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:274 (message):
  Validation queue job build-util_jvm_module-2012-05-21T21-06-30.78Z is
  finished. The final status was:

  No tests were run - build or configure step must have failed.

  Not commiting changes.

Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

9. By Matthias Brantner

build fixes for os x

Revision history for this message
Chris Hillery (ceejatec) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job build-util_jvm_module-2012-05-22T00-22-47.623Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/CMakeLists.txt'
2--- src/CMakeLists.txt 2012-05-18 10:36:07 +0000
3+++ src/CMakeLists.txt 2012-05-22 00:20:24 +0000
4@@ -33,10 +33,14 @@
5 # The important stuff is the library, which we install in Zorba's
6 # default lib directory.
7 ADD_LIBRARY(util-jvm SHARED util-jvm.cpp JavaVMSingleton.cpp)
8-TARGET_LINK_LIBRARIES(util-jvm "${JAVA_JVM_LIBRARY}")
9+TARGET_LINK_LIBRARIES(util-jvm "${JAVA_JVM_LIBRARY}" zorba_${ZORBA_STORE_NAME})
10 INSTALL(TARGETS util-jvm DESTINATION lib)
11
12+# MAC OS X only property
13+# this is required to make sure that the library has the correct install name after
14+# installation such that dependent modules always find it
15+SET_TARGET_PROPERTIES(util-jvm PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
16+
17 # Set this in the parent scope so it will be put into our Config.cmake file.
18 # As with many other things, this doesn't work when the module is installed.
19-GET_TARGET_PROPERTY(_lib_loc util-jvm LOCATION)
20-SET(ZORBA_PROJECT_LIBRARIES "${_lib_loc}" PARENT_SCOPE)
21+SET(ZORBA_PROJECT_LIBRARIES util-jvm PARENT_SCOPE)

Subscribers

People subscribed via source and target branches

to all changes: