Skip to content

Commit

Permalink
BasisImageConverter: copy compile definitions from the Encoder target
Browse files Browse the repository at this point in the history
To also apply the fixes required for GCC < 5
  • Loading branch information
pezcode committed Sep 18, 2024
1 parent 47e4001 commit 1fa6c1d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/MagnumPlugins/BasisImageConverter/Test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ target_include_directories(BasisImageConverterTest PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>
# The test needs BASISU_LIB_VERSION from basisu_comp.h
${BasisUniversalEncoder_INCLUDE_DIR})
# BasisUniversalEncoder_DEFINITIONS isn't exported by find_package, so we need
# to grab it from the target
get_target_property(BasisUniversalEncoder_DEFINITIONS BasisUniversal::Encoder
INTERFACE_COMPILE_DEFINITIONS)
set_property(TARGET BasisImageConverterTest APPEND PROPERTY
COMPILE_DEFINITIONS ${BasisUniversalEncoder_DEFINITIONS})
if(MAGNUM_BASISIMAGECONVERTER_BUILD_STATIC)
target_link_libraries(BasisImageConverterTest PRIVATE BasisImageConverter)
if(Magnum_AnyImageImporter_FOUND)
Expand Down

0 comments on commit 1fa6c1d

Please sign in to comment.