From b2245b1898ec6000bc8617c46c288b835344591d Mon Sep 17 00:00:00 2001 From: NotAdam Date: Tue, 26 Mar 2019 23:42:06 +1100 Subject: [PATCH] link stackwalker against common for windows builds --- deps/stackwalker/CMakeLists.txt | 7 +++++++ src/common/CMakeLists.txt | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 deps/stackwalker/CMakeLists.txt diff --git a/deps/stackwalker/CMakeLists.txt b/deps/stackwalker/CMakeLists.txt new file mode 100644 index 00000000..5cbb1b12 --- /dev/null +++ b/deps/stackwalker/CMakeLists.txt @@ -0,0 +1,7 @@ +cmake_minimum_required(VERSION 3.0.2) +project(Sapphire) + +file( GLOB STACKWALKER_INCLUDE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.h*" ) +file( GLOB STACKWALKER_SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.c*" ) + +add_library( stackwalker ${STACKWALKER_INCLUDE_FILES} ${STACKWALKER_SOURCE_FILES} ) \ No newline at end of file diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 88ab338d..0b494d98 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -26,6 +26,10 @@ if( UNIX ) PUBLIC pthread stdc++fs ) +else() + target_link_libraries( common + PUBLIC + stackwalker ) endif() target_include_directories( common