Fix a bug when there's '+' in the building path (#221)

This commit is contained in:
An Tao 2019-08-23 16:59:55 +08:00 committed by GitHub
parent b5a142a10e
commit dcab7d54b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -292,14 +292,11 @@ else()
endif()
get_target_property(INS drogon INCLUDE_DIRECTORIES)
set(TMP_INS "")
list(APPEND INS "${INSTALL_INCLUDE_DIR}")
list(REMOVE_DUPLICATES INS)
set(INS_STRING "")
foreach(loop_var ${INS})
if(TMP_INS MATCHES ";${loop_var};")
else()
set(TMP_INS ";${loop_var};${TMP_INS}")
set(INS_STRING "${INS_STRING} -I${loop_var}")
endif()
set(INS_STRING "${INS_STRING} -I${loop_var}")
endforeach(loop_var)
set(INCLUDING_DIRS ${INS_STRING})