Fix absolute path detection

This commit is contained in:
BtbN 2014-05-05 20:13:14 +02:00
parent 3e224b9750
commit 4959db83d4

View File

@ -169,7 +169,7 @@ endmacro()
macro(install_obs_headers)
foreach(hdr ${ARGN})
if("${hdr}" MATCHES "^/.*$")
if("${hdr}" MATCHES "^(/|[a-zA-Z]:[/\\\\]).*$")
set(subdir)
else()
get_filename_component(subdir "${hdr}" DIRECTORY)