Skip to content

Commit

Permalink
Minor update for compiling with a newer version of Ubuntu.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Rivest-Hénault committed Jan 27, 2020
1 parent 1dc0715 commit 24cc630
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------------
Expand Down
2 changes: 1 addition & 1 deletion src/mirorr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 24cc630

Please sign in to comment.