Closed kkaefer closed 7 years ago
This change breaks linking on VS2015/CMake 3.7 for me; the "${NODEJS_LINK_FLAGS}"
expression expands to a ;
delimited string, which is bad because we need a white-space delimited string for LINK_FLAGS
(which itself is a string property).
This is a case for separate_arguments
.
I think seperate_arguments
does the opposite of what's needed. Do you have an example?
A naive way of doing this could be string(REPLACE ";" " " LINK_FLAGS_STR "${NODEJS_LINK_FLAGS}")
and then:
set_target_properties(${NAME} PROPERTIES
...
LINK_FLAGS "${LINK_FLAGS_STR}"
)
You're right, sorry.
Since 2.0, node-cmake passes the LINK_FLAGS via
target_link_libraries
, but it should continue to useset_target_properties
as per the CMake document:Fixes for https://github.com/cjntaylor/node-cmake/issues/17 for non-Windows builds.