diff options
| author | Slávek Banko <slavek.banko@axis.cz> | 2025-01-25 01:26:22 +0100 |
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2025-01-25 01:26:33 +0100 |
| commit | 122c229a7d64afe9a39b310cc73a747dc01d8ca1 (patch) | |
| tree | 133a24a5f5b80740bdab88a68938a4d2b0f5777f /ConfigureChecks.cmake | |
| parent | b58cfd146047bebabe0d1a045ff8284c23d4f7eb (diff) | |
| download | amarok-122c229a7d64afe9a39b310cc73a747dc01d8ca1.tar.gz amarok-122c229a7d64afe9a39b310cc73a747dc01d8ca1.zip | |
Fix the problem of linking taglib2 on 32 bit architectures
if taglib is not built with large files support.
This resolves the last part from issue #60.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ConfigureChecks.cmake')
| -rw-r--r-- | ConfigureChecks.cmake | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 8d0f1fc9..fd362b04 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -109,6 +109,29 @@ else( ) tde_message_fatal( "taglib is required, but not found on your system" ) endif( ) +tde_save_and_set( CMAKE_REQUIRED_DEFINITIONS "${LARGEFILES_DEFINITIONS}" ) +tde_save_and_set( CMAKE_REQUIRED_INCLUDES "${TAGLIB_INCLUDE_DIRS}" ) +tde_save_and_set( CMAKE_REQUIRED_LIBRARIES "${TAGLIB_LIBRARIES}" ) + +check_cxx_source_compiles( " + #include <taglib.h> + #include <id3v1tag.h> + + int main( int, char** ) + { + off_t tagOffset = 0; + TagLib::File *testFile = nullptr; + TagLib::ID3v1::Tag *id3tag = new TagLib::ID3v1::Tag(testFile, tagOffset); + return 0; + } + " + TAGLIB_LARGE_FILES_SUPPORT +) + +tde_restore( CMAKE_REQUIRED_DEFINITIONS ) +tde_restore( CMAKE_REQUIRED_INCLUDES ) +tde_restore( CMAKE_REQUIRED_LIBRARIES ) + # libvisual if( WITH_LIBVISUAL ) |
