Skip to content

Commit

Permalink
Merge pull request #61 from jakirkham/drop_leftover_cxx11
Browse files Browse the repository at this point in the history
Pre-C++11 (Part 2)
  • Loading branch information
jakirkham committed Mar 14, 2016
2 parents e4ab2a4 + 9dbde6a commit 728ca6a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ if(${USE_CYTHON})
else()
find_package(Boost "1.56.0" REQUIRED COMPONENTS container python)
find_package(VIGRA REQUIRED)
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
endif()
find_package(NUMPY REQUIRED)

Expand Down Expand Up @@ -125,9 +126,6 @@ else()
link_directories(${PYTHON_LIBRARY_DIR} ${Boost_LIBRARY_DIRS})
endif()

# Use C++11
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")

# Build binary for running base API C++ unitests
add_executable(cxxtest_base ${CMAKE_CURRENT_SOURCE_DIR}/test/test_rank_filter_base)
target_link_libraries(cxxtest_base ${Boost_CONTAINER_LIBRARY})
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Installation

The easiest way to install is to install our ``conda`` package.
Alternatively, one can install from ``pip``, but this will require a
C++11 compatible compiler and a recent version of ``setuptools``.
C++ compiler and a recent version of ``setuptools``.

Building
--------
Expand Down
4 changes: 2 additions & 2 deletions rank_filter.recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ then
CXX_LDFLAGS=$DEFAULT_CXX_LDFLAGS
fi

CXX_FLAGS="${CXXFLAGS} ${CXX_FLAGS} -std=c++11"
CXX_LDFLAGS="${LDFLAGS} ${CXX_LDFLAGS} -std=c++11"
CXX_FLAGS="${CXXFLAGS} ${CXX_FLAGS}"
CXX_LDFLAGS="${LDFLAGS} ${CXX_LDFLAGS}"

# CONFIGURE
SRC=$(pwd)
Expand Down
2 changes: 1 addition & 1 deletion test/test_rank_filter_base.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct RankFilterBaseFixture
{
public:

static constexpr unsigned long size = 10;
static const unsigned long size = 10;

boost::array<double, size> array_1;
boost::array<double, size> reverse_array_1;
Expand Down

0 comments on commit 728ca6a

Please sign in to comment.