-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '1.0.0-914-fix-stack-trace' into 1.0.0-beta.10.4-propose…
…d-update
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
include(CheckCXXCompilerFlag) | ||
|
||
if(POLICY CMP0056) | ||
# Honor link flags in try_compile() source-file signature. | ||
cmake_policy(SET CMP0056 NEW) | ||
endif() | ||
|
||
# This is written because cmake does not support `check_linker_flag` until 3.18 | ||
function(check_linker_flag flag out_var) | ||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${flag}") | ||
check_cxx_compiler_flag("" ${out_var}) | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
include(CheckLinkerFlag) | ||
|
||
check_linker_flag(-rdynamic LINKER_SUPPORTS_RDYNAMIC) | ||
|
||
if (LINKER_SUPPORTS_RDYNAMIC) | ||
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.13) | ||
target_link_options(${VIRTUAL_TRANSPORT_LIBRARY} INTERFACE -rdynamic) | ||
else() | ||
target_link_libraries(${VIRTUAL_TRANSPORT_LIBRARY} INTERFACE -rdynamic) | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters