From 52e8fedbd57c3ba6d8587d2d48d13799dacc9b75 Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)" Date: Wed, 12 Apr 2017 12:07:35 +0100 Subject: Finally fully compiling on Linux with GCC 6 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 13385665..e3c72713 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,6 +63,10 @@ if(NOT MSVC OR CMAKE_VERSION VERSION_GREATER 3.59) endif() # Set the library dependencies this library has all_link_libraries(PUBLIC boost-lite_hl outcome_hl kerneltest_hl) +# Set the system dependencies this library has +if(CMAKE_SYSTEM_NAME MATCHES "Linux") + all_link_libraries(PUBLIC stdc++fs rt) +endif() # Set any macros this library requires if(WIN32) all_compile_definitions(PRIVATE _WIN32_WINNT=0x600) ## Target WinVista -- cgit v1.2.3