Skip to content
Snippets Groups Projects
Commit e5f43bf8 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Fix CLANG build.

parent 89ad12e2
No related branches found
No related tags found
No related merge requests found
......@@ -218,7 +218,7 @@ include(luajit)
#
set (ENABLE_BUNDLED_LIBOBJC_DEFAULT ON)
if (TARGET_OS_DARWIN)
set (ENABLE_BUNDLED_LIBOBJC_DEFAULT OFF)
set (ENABLE_BUNDLED_LIBOBJC_DEFAULT OFF)
endif()
option(ENABLE_BUNDLED_LIBOBJC "Enable building of the bundled libobjc" ${ENABLE_BUNDLED_LIBOBJC_DEFAULT})
......
......@@ -18,9 +18,12 @@ add_executable(bitset_index_test bitset_index.c)
target_link_libraries(bitset_index_test bitset)
add_executable(objc_finally objc_finally.m)
include_directories(${LIBOBJC_INCLUDE_DIRS})
add_executable(objc_catchcxx objc_catchcxx.m)
add_dependencies(objc_finally build_bundled_libs)
add_dependencies(objc_catchcxx build_bundled_libs)
target_link_libraries(objc_finally ${LIBOBJC_LIBRARIES} -lm -pthread)
target_link_libraries(objc_catchcxx ${LIBOBJC_LIBRARIES} ${LUAJIT_LIB} -lm -pthread)
if (TARGET_OS_LINUX OR TARGET_OS_DEBIAN_FREEBSD)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment