]> git.saurik.com Git - apt.git/blobdiff - CMakeLists.txt
CMake: Add Large File Support
[apt.git] / CMakeLists.txt
index ced68285de72eda9091423f3613f098d3994206d..b63cfe0e82c1936ed5c096f7af0e092105a301ad 100644 (file)
@@ -27,6 +27,12 @@ include(GNUInstallDirs)
 include(TestBigEndian)
 find_package(Threads)
 find_package(PkgConfig)
 include(TestBigEndian)
 find_package(Threads)
 find_package(PkgConfig)
+find_package(LFS REQUIRED)
+
+# Add large file support
+add_compile_options(${LFS_COMPILE_OPTIONS})
+add_definitions(${LFS_DEFINITIONS})
+link_libraries(${LFS_LIBRARIES})
 
 # Set compiler flags
 set(CMAKE_CXX_STANDARD 11)
 
 # Set compiler flags
 set(CMAKE_CXX_STANDARD 11)