mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-08 22:21:49 +08:00
Proper fix for linking to the Qt libraries (and others)
My initial fix was incorrect, the libraries must be quoted when being passed to the add test macro, but must be unquoted when passed to the target_link_libraries function.
This commit is contained in:
parent
6580278e2c
commit
258ea3ea02
@ -158,7 +158,7 @@ macro(ei_add_test testname)
|
|||||||
string(STRIP "${ARGV2}" ARGV2_stripped)
|
string(STRIP "${ARGV2}" ARGV2_stripped)
|
||||||
string(LENGTH "${ARGV2_stripped}" ARGV2_stripped_length)
|
string(LENGTH "${ARGV2_stripped}" ARGV2_stripped_length)
|
||||||
if(${ARGV2_stripped_length} GREATER 0)
|
if(${ARGV2_stripped_length} GREATER 0)
|
||||||
target_link_libraries(${targetname} "${ARGV2}")
|
target_link_libraries(${targetname} ${ARGV2})
|
||||||
endif(${ARGV2_stripped_length} GREATER 0)
|
endif(${ARGV2_stripped_length} GREATER 0)
|
||||||
endif(${ARGC} GREATER 2)
|
endif(${ARGC} GREATER 2)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user