Skip to content
Snippets Groups Projects
Commit c2a4529d authored by Adrian Sampson's avatar Adrian Sampson
Browse files

Slightly more proper CMake nonsense

parent 3aaece3b
Branches
No related tags found
No related merge requests found
......@@ -3,7 +3,18 @@ add_library(SkeletonPass MODULE
Skeleton.cpp
)
# Use C++11 to compile our pass (i.e., supply -std=c++11).
target_compile_features(SkeletonPass PRIVATE cxx_range_for cxx_auto_type)
# LLVM is (typically) built with no C++ RTTI. We need to match that.
set_target_properties(SkeletonPass PROPERTIES
COMPILE_FLAGS "-fno-rtti"
)
# Get proper shared-library behavior (where symbols are not necessarily
# resolved when the shared library is linked) on OS X.
if(APPLE)
set_target_properties(SkeletonPass PROPERTIES
COMPILE_FLAGS "-std=c++11 -fno-rtti"
LINK_FLAGS "-undefined dynamic_lookup"
)
endif(APPLE)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment