Skip to content

Commit

Permalink
FIX Triton and Silverlining CMAKE issues with misssing GLU; FIX blosc…
Browse files Browse the repository at this point in the history
… BuildConfig define
  • Loading branch information
gwaldron committed May 28, 2024
1 parent db26806 commit 1bdb3a7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 15 deletions.
1 change: 1 addition & 0 deletions cmake/FindSilverLining.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ IF (SILVERLINING_INCLUDE_DIR AND SILVERLINING_LIBRARY AND SILVERLINING_LIBRARY_D
add_library(OE::SILVERLINING SHARED IMPORTED)
set_target_properties(OE::SILVERLINING PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${SILVERLINING_INCLUDE_DIR}"
INTERFACE_LINK_LIBRARIES "OpenGL::GL;OpenGL::GLU"
)
if(WIN32)
set_target_properties(OE::SILVERLINING PROPERTIES
Expand Down
1 change: 1 addition & 0 deletions cmake/FindTriton.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ IF (TRITON_INCLUDE_DIR AND TRITON_LIBRARY AND TRITON_LIBRARY_DEBUG)
add_library(OE::TRITON SHARED IMPORTED)
set_target_properties(OE::TRITON PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${TRITON_INCLUDE_DIR}"
INTERFACE_LINK_LIBRARIES "OpenGL::GL;OpenGL::GLU"
)
if(WIN32)
set_target_properties(OE::TRITON PROPERTIES
Expand Down
1 change: 1 addition & 0 deletions src/osgEarth/BuildConfig.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#pragma once

#cmakedefine OSGEARTH_HAVE_BLEND2D
#cmakedefine OSGEARTH_HAVE_BLOSC
#cmakedefine OSGEARTH_HAVE_GEOS
#cmakedefine OSGEARTH_HAVE_GEOCODER
#cmakedefine OSGEARTH_HAVE_IMGUI
Expand Down
2 changes: 1 addition & 1 deletion src/osgEarth/Compressors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <osgDB/ObjectWrapper>
#include <osgDB/DataTypes>

#if OSGEARTH_HAVE_BLOSC
#ifdef OSGEARTH_HAVE_BLOSC
#include <blosc.h>

class BloscCompressor : public osgDB::BaseCompressor
Expand Down
8 changes: 1 addition & 7 deletions src/osgEarthSilverLining/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ if (SILVERLINING_USE_PRE_5_079_API)
add_definitions(-DOSGEARTH_SILVERLINING_USE_PRE_5_079_API)
endif()

SET(HEADER_PATH ${OSGEARTH_SOURCE_DIR}/include/${LIB_NAME})

SET(TARGET_H
# header files go here
Common
Export
SilverLiningOptions
Expand All @@ -44,9 +41,6 @@ add_osgearth_library(
SOURCES ${TARGET_SRC}
PUBLIC_HEADERS ${TARGET_H}
FOLDER "NodeKits")

include_directories(${SILVERLINING_INCLUDE_DIR})

target_link_libraries(${LIB_NAME}
PUBLIC OE::SILVERLINING
PRIVATE OpenGL::GL)
PRIVATE OE::SILVERLINING OpenGL::GL)
8 changes: 1 addition & 7 deletions src/osgEarthTriton/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ else()
add_definitions(-DOSGEARTHTRITON_LIBRARY_STATIC)
endif()

set(HEADER_PATH ${OSGEARTH_SOURCE_DIR}/include/${LIB_NAME})

SET(TARGET_H
Common
Export
Expand All @@ -38,9 +36,5 @@ add_osgearth_library(
PUBLIC_HEADERS ${TARGET_H}
FOLDER "NodeKits")

include_directories(${TRITON_INCLUDE_DIR})

target_link_libraries(${LIB_NAME}
PUBLIC OpenGL::GL
PRIVATE OE::TRITON)

PRIVATE OE::TRITON OpenGL::GL)

0 comments on commit 1bdb3a7

Please sign in to comment.