diff --git a/libunwind/CMakeLists.txt b/libunwind/CMakeLists.txt --- a/libunwind/CMakeLists.txt +++ b/libunwind/CMakeLists.txt @@ -143,6 +143,10 @@ set(LIBUNWIND_CXX_FLAGS "") set(LIBUNWIND_COMPILE_FLAGS "") set(LIBUNWIND_LINK_FLAGS "") +set(LIBUNWIND_ADDITIONAL_COMPILE_FLAGS "" CACHE STRING + "Additional Compile only flags which can be provided in cache") +set(LIBUNWIND_ADDITIONAL_LIBRARIES "" CACHE STRING + "Additional libraries libunwind is linked to which can be provided in cache") # Include macros for adding and removing libunwind flags. include(HandleLibunwindFlags) @@ -151,6 +155,10 @@ # Setup Compiler Flags #=============================================================================== +# Configure target flags +add_compile_flags("${LIBUNWIND_ADDITIONAL_COMPILE_FLAGS}") +add_library_flags("${LIBUNWIND_ADDITIONAL_LIBRARIES}") + # Configure compiler. include(config-ix)