summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-02-01 17:16:01 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-02-04 01:24:32 +0100
commit67fac6eb61fb55b98db7e67d5ead244272cc4b49 (patch)
tree67922073dfa0708cae5ea212f01f044471ff83fa
parent01bed117c91b8e9d657501c6f701cb579c124ae9 (diff)
downloadtdebase-67fac6eb61fb55b98db7e67d5ead244272cc4b49.tar.gz
tdebase-67fac6eb61fb55b98db7e67d5ead244272cc4b49.zip
Use common test for large files support.
Drop hardcoded definition -D_LARGEFILE64_SOURCE. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 02cb998b9cb2cd5ef36fe0b86781fc452a0d150e)
-rw-r--r--ConfigureChecks.cmake2
-rw-r--r--kcontrol/fonts/CMakeLists.txt2
-rw-r--r--kcontrol/tdefontinst/lib/CMakeLists.txt2
-rw-r--r--konqueror/CMakeLists.txt5
4 files changed, 2 insertions, 9 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 7105bdef6..5af31a2ae 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -18,6 +18,8 @@ tde_setup_architecture_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
+tde_setup_largefiles( )
+
find_package( TQt )
find_package( TDE )
diff --git a/kcontrol/fonts/CMakeLists.txt b/kcontrol/fonts/CMakeLists.txt
index 46787bcd6..8e82c01a8 100644
--- a/kcontrol/fonts/CMakeLists.txt
+++ b/kcontrol/fonts/CMakeLists.txt
@@ -29,8 +29,6 @@ set( HAVE_FREETYPE2 1 CACHE INTERNAL "" FORCE )
##### compiler/linker settings ##################
-add_definitions( -D_LARGEFILE64_SOURCE )
-
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
diff --git a/kcontrol/tdefontinst/lib/CMakeLists.txt b/kcontrol/tdefontinst/lib/CMakeLists.txt
index 325b1b51d..411307aba 100644
--- a/kcontrol/tdefontinst/lib/CMakeLists.txt
+++ b/kcontrol/tdefontinst/lib/CMakeLists.txt
@@ -9,8 +9,6 @@
#
#################################################
-add_definitions( -D_LARGEFILE64_SOURCE )
-
include_directories(
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
diff --git a/konqueror/CMakeLists.txt b/konqueror/CMakeLists.txt
index 83d75d646..0c99b911c 100644
--- a/konqueror/CMakeLists.txt
+++ b/konqueror/CMakeLists.txt
@@ -16,11 +16,6 @@ if( NOT BUILD_LIBKONQ )
endif( NOT BUILD_LIBKONQ )
-add_definitions(
- -D_LARGEFILE64_SOURCE
-)
-
-
add_subdirectory( client )
add_subdirectory( iconview )
add_subdirectory( listview )