comparison CMakeLists.txt @ 101:113d909fdfe1

CMake: disallow absolute paths, #389
author David Demelier <markand@malikania.fr>
date Mon, 25 Apr 2016 21:16:47 +0200
parents c67e734c9241
children be4b9ed19a17
comparison
equal deleted inserted replaced
100:a3814665a60d 101:113d909fdfe1
135 # ${CMAKE_MAKE_PROGRAM} package_source 135 # ${CMAKE_MAKE_PROGRAM} package_source
136 # ) 136 # )
137 # 137 #
138 # add_dependencies(release package_ifw) 138 # add_dependencies(release package_ifw)
139 #endif () 139 #endif ()
140
141 # Show warnings about non-relocatable irccd.
142 if (NOT IRCCD_RELOCATABLE)
143 message("Note: irccd is not relocatable, the following paths are absolute:")
144 message("")
145
146 foreach (path ${IRCCD_ABSOLUTE_PATHS})
147 message(" ${path} is set to ${${path}}")
148 endforeach ()
149
150 message("")
151 message("You can still use irccd, but you won't be able to move the application to a")
152 message("different directory.")
153 message("")
154 message("This may be an issue with some packages manager which allows relocating")
155 message("application in different directories.")
156 message("")
157 message("Set to relative paths if this is a concern.")
158 message("")
159 endif ()