From 24cc630c905bfd43685d75f21658089d65c4506a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rivest-H=C3=A9nault?= Date: Mon, 27 Jan 2020 12:22:01 -0500 Subject: [PATCH] Minor update for compiling with a newer version of Ubuntu. --- README.md | 9 +++++++++ src/mirorr/CMakeLists.txt | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 69df058..1b69496 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,15 @@ cmake .. -DCMAKE_BUILD_TYPE=Release; make ``` +On newer OSs, if the build complains about missing ITK functions or +`This file requires compiler and library support for the ISO C++ 2011 standard.` +`This support must be enabled with the -std=c++11 or -std=gnu++11 compiler`, try updating the +C++ version as follows: + +```bash +cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=11; +``` + TESTING THE BUILD ----------------- diff --git a/src/mirorr/CMakeLists.txt b/src/mirorr/CMakeLists.txt index e6a316f..536d9a5 100644 --- a/src/mirorr/CMakeLists.txt +++ b/src/mirorr/CMakeLists.txt @@ -39,10 +39,10 @@ if( WIN32 ) set(Boost_USE_MULTITHREADED ON) set(Boost_USE_STATIC_RUNTIME OFF) find_package(Boost REQUIRED) - find_package(Boost COMPONENTS program_options filesystem system timer) else( WIN32 ) find_package(Boost REQUIRED) endif( WIN32 ) +find_package(Boost COMPONENTS program_options filesystem system timer) include_directories(${Boost_INCLUDE_DIR}) link_directories(${Boost_LIBRARY_DIR})