From 7e30f35cfc42ac3983dfa281d554df9aa9485a99 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Sat, 1 Oct 2016 10:02:15 +0200 Subject: Fixes the build for mxe-cross-builds, and if building shared libraries. --- node/CMakeLists.txt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'node/CMakeLists.txt') diff --git a/node/CMakeLists.txt b/node/CMakeLists.txt index adbedb1..6fe0ef7 100644 --- a/node/CMakeLists.txt +++ b/node/CMakeLists.txt @@ -8,9 +8,16 @@ add_executable(node nextnode.hpp nextnode.cpp ) -target_compile_options(node - PRIVATE "-std=c++11" -) +if(WIN32) + target_compile_options(node + PRIVATE "-std=gnu++11" + ) +else(WIN32) + target_compile_options(node + PRIVATE "-std=c++11" + ) +endif(WIN32) + target_link_libraries(node PRIVATE Boost::boost -- cgit v1.2.3-70-g09d2