comparison cmake/IrccdSystem.cmake @ 485:daf3aa8b2ddb

CMake: get rid of fakeroot mechanism, closes #674
author David Demelier <markand@malikania.fr>
date Thu, 27 Jul 2017 16:44:57 +0200
parents c6fbb6e0e06d
children 0b156b82b8c1
comparison
equal deleted inserted replaced
484:69cc48b46dcb 485:daf3aa8b2ddb
68 68
69 if (CMAKE_SIZEOF_VOID_P MATCHES "8") 69 if (CMAKE_SIZEOF_VOID_P MATCHES "8")
70 set(IRCCD_64BITS TRUE) 70 set(IRCCD_64BITS TRUE)
71 else () 71 else ()
72 set(IRCCD_64BITS FALSE) 72 set(IRCCD_64BITS FALSE)
73 endif ()
74
75 set(IRCCD_FAKEROOTDIR ${CMAKE_BINARY_DIR}/fakeroot)
76
77 if (NOT EXISTS ${IRCCD_FAKEROOTDIR})
78 file(MAKE_DIRECTORY ${IRCCD_FAKEROOTDIR})
79 endif () 73 endif ()
80 74
81 # 75 #
82 # System identification. 76 # System identification.
83 # ------------------------------------------------------------------- 77 # -------------------------------------------------------------------
260 check_struct_has_member("struct stat" st_rdev sys/stat.h HAVE_STAT_ST_RDEV) 254 check_struct_has_member("struct stat" st_rdev sys/stat.h HAVE_STAT_ST_RDEV)
261 check_struct_has_member("struct stat" st_size sys/stat.h HAVE_STAT_ST_SIZE) 255 check_struct_has_member("struct stat" st_size sys/stat.h HAVE_STAT_ST_SIZE)
262 check_struct_has_member("struct stat" st_uid sys/stat.h HAVE_STAT_ST_UID) 256 check_struct_has_member("struct stat" st_uid sys/stat.h HAVE_STAT_ST_UID)
263 257
264 # Configuration file. 258 # Configuration file.
259 file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/irccd)
260
265 configure_file( 261 configure_file(
266 ${CMAKE_CURRENT_LIST_DIR}/internal/sysconfig.hpp.in 262 ${CMAKE_CURRENT_LIST_DIR}/internal/sysconfig.hpp.in
267 ${IRCCD_FAKEROOTDIR}/include/irccd/sysconfig.hpp 263 ${CMAKE_BINARY_DIR}/irccd/sysconfig.hpp
268 ) 264 )
265
266 include_directories(${CMAKE_BINARY_DIR})