Fixing deployment target issues on OS X broke cpp-multithread due to deployment target libc++ issues. Fixed.

Fixes #302.
This commit is contained in:
Pietro Gagliardi 2018-03-20 02:10:48 -04:00
parent 3e76d799b1
commit 242620ff0f
1 changed files with 6 additions and 0 deletions

View File

@ -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