Fixing deployment target issues on OS X broke cpp-multithread due to deployment target libc++ issues. Fixed.
Fixes #302.
This commit is contained in:
parent
3e76d799b1
commit
242620ff0f
|
@ -30,6 +30,12 @@ _add_example(cpp-multithread
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
target_link_libraries(cpp-multithread pthread)
|
target_link_libraries(cpp-multithread pthread)
|
||||||
endif()
|
endif()
|
||||||
|
if(APPLE)
|
||||||
|
# since we use a deployment target of 10.8, the non-C++11-compliant libstdc++ is chosen by default; we need C++11
|
||||||
|
# see issue #302 for more details
|
||||||
|
target_compile_options(cpp-multithread PRIVATE --stdlib=libc++)
|
||||||
|
target_link_libraries(cpp-multithread --stdlib=libc++)
|
||||||
|
endif()
|
||||||
|
|
||||||
_add_example(drawtext
|
_add_example(drawtext
|
||||||
drawtext/main.c
|
drawtext/main.c
|
||||||
|
|
Loading…
Reference in New Issue