Fix a bug when there's '+' in the building path (#221)
This commit is contained in:
parent
b5a142a10e
commit
dcab7d54b1
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue