match LIBPATH instead of libpath
This commit is contained in:
parent
c176163b66
commit
9d0af6d4e2
1 changed files with 2 additions and 2 deletions
|
@ -14,10 +14,10 @@ if( SWIFTEN_LIBRARY AND SWIFTEN_INCLUDE_DIR )
|
|||
set(SWIFTEN_LIBRARY "")
|
||||
foreach(f ${SWIFTEN_LIB})
|
||||
STRING(SUBSTRING ${f} 0 2 f_out)
|
||||
STRING(COMPARE EQUAL ${f_out} "/l" IS_PATH)
|
||||
STRING(COMPARE EQUAL ${f_out} "/L" IS_PATH)
|
||||
if(${IS_PATH})
|
||||
message(${f})
|
||||
string(REGEX REPLACE "/libpath:" "" f_replaced ${f})
|
||||
string(REGEX REPLACE "/LIBPATH:" "" f_replaced ${f})
|
||||
link_directories(${f_replaced})
|
||||
else()
|
||||
list(APPEND SWIFTEN_LIBRARY ${f})
|
||||
|
|
Loading…
Add table
Reference in a new issue