cmake: ocv_check_modules: ignore -latomic and -lstdc++
This commit is contained in:
parent
d9f66413ee
commit
8832a9dbd5
@ -866,7 +866,10 @@ macro(ocv_check_modules define)
|
|||||||
foreach(flag ${${define}_LDFLAGS})
|
foreach(flag ${${define}_LDFLAGS})
|
||||||
if(flag MATCHES "^-L(.*)")
|
if(flag MATCHES "^-L(.*)")
|
||||||
list(APPEND _libs_paths ${CMAKE_MATCH_1})
|
list(APPEND _libs_paths ${CMAKE_MATCH_1})
|
||||||
elseif(IS_ABSOLUTE "${flag}")
|
elseif(IS_ABSOLUTE "${flag}"
|
||||||
|
OR flag STREQUAL "-lstdc++"
|
||||||
|
OR flag STREQUAL "-latomic"
|
||||||
|
)
|
||||||
list(APPEND _libs "${flag}")
|
list(APPEND _libs "${flag}")
|
||||||
elseif(flag MATCHES "^-l(.*)")
|
elseif(flag MATCHES "^-l(.*)")
|
||||||
set(_lib "${CMAKE_MATCH_1}")
|
set(_lib "${CMAKE_MATCH_1}")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user