mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
No need to specify Marble dir anymore
We are already looking for the default directory. *if* cmake doesn't find Marble automatically, the user needs to specify -DMARBLE_INCLUDE_DIR and -DMARBLE_LIBRARIES Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f13e72c306
commit
2e05dbb791
1 changed files with 2 additions and 9 deletions
|
@ -53,15 +53,8 @@ ELSE()
|
|||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -ldivecomputer)
|
||||
ENDIF()
|
||||
|
||||
IF(NOT DEFINED LIBMARBLEDEVEL)
|
||||
FIND_PACKAGE(Marble REQUIRED)
|
||||
include_directories(${MARBLE_INCLUDE_DIR})
|
||||
link_directories(${MARBLE_LIB_DIR})
|
||||
ELSE()
|
||||
include_directories(${LIBMARBLEDEVEL}/include)
|
||||
link_directories(${LIBMARBLEDEVEL}/lib)
|
||||
SET(MARBLE_LIBRARIES -L${LIBMARBLEDEVEL}/lib -lssrfmarblewidget)
|
||||
ENDIF()
|
||||
FIND_PACKAGE(Marble REQUIRED)
|
||||
include_directories(${MARBLE_INCLUDE_DIR})
|
||||
|
||||
# handle out of tree build correctly
|
||||
|
||||
|
|
Loading…
Reference in a new issue