Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbedd3b commit fa729bfCopy full SHA for fa729bf
cmake/matplotlib_cppConfig.cmake.in
@@ -12,8 +12,11 @@ if(NOT DEFINED matplotlib_cpp_FOUND)
12
)
13
14
set(matplotlib_LIBS ${PYTHON_LIBRARIES})
15
- list(GET matplotlib_LIBS 0 2 3 REMOVE_STR)
16
- remove(matplotlib_LIBS ${REMOVE_STR})
17
-
+
+ list(LENGTH matplotlib_LIBS Len)
+ if(${Len}>1)
18
+ list(GET matplotlib_LIBS 0 2 3 REMOVE_STR)
19
+ remove(matplotlib_LIBS ${REMOVE_STR})
20
+ endif()
21
message("--- [matplotlib_cpp]: Found! Already include required directories! Please link matplotlib_LIBS with /MT options.")
22
endif()
0 commit comments