Skip to content

Commit

Permalink
completely remove cppcoro
Browse files Browse the repository at this point in the history
  • Loading branch information
luk036 committed Apr 21, 2023
1 parent 2de5ff0 commit 1c222fa
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ option(INSTALL_ONLY "Enable for installation only" OFF)
# Note: update this to your new project's name and version
project(
XNetwork
VERSION 1.6.2
VERSION 1.6.3
LANGUAGES CXX
)

Expand Down
6 changes: 3 additions & 3 deletions include/xnetwork/classes/graph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
#include <xnetwork/classes/coreviews.hpp> // import AtlasView, AdjacencyView
#include <xnetwork/classes/reportviews.hpp> // import NodeView, EdgeView, DegreeView

#if __cplusplus > 201703L
#include <cppcoro/generator.hpp>
#endif
// #if __cplusplus > 201703L
// #include <cppcoro/generator.hpp>
// #endif

template <typename T> using Value_type = typename T::value_type;

Expand Down
24 changes: 12 additions & 12 deletions specific.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ endif()

find_package(Boost REQUIRED)

CPMAddPackage(
NAME cppcoro
GIT_TAG 2.0
GITHUB_REPOSITORY luk036/cppcoro
)
# print_target_properties(cppcoro)
if(cppcoro_ADDED)
message(STATUS "Found cppcoro: ${cppcoro_SOURCE_DIR}")
add_library(cppcoro::cppcoro INTERFACE IMPORTED GLOBAL)
target_include_directories(cppcoro::cppcoro SYSTEM INTERFACE ${cppcoro_SOURCE_DIR}/include)
endif(cppcoro_ADDED)
# CPMAddPackage(
# NAME cppcoro
# GIT_TAG 2.0
# GITHUB_REPOSITORY luk036/cppcoro
# )
# # print_target_properties(cppcoro)
# if(cppcoro_ADDED)
# message(STATUS "Found cppcoro: ${cppcoro_SOURCE_DIR}")
# add_library(cppcoro::cppcoro INTERFACE IMPORTED GLOBAL)
# target_include_directories(cppcoro::cppcoro SYSTEM INTERFACE ${cppcoro_SOURCE_DIR}/include)
# endif(cppcoro_ADDED)

if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# using GCC
Expand All @@ -46,4 +46,4 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
add_compile_options(/std:c++latest /await)
endif()

set(SPECIFIC_LIBS Py2Cpp::Py2Cpp fmt::fmt Boost::boost cppcoro::cppcoro)
set(SPECIFIC_LIBS Py2Cpp::Py2Cpp fmt::fmt Boost::boost)
6 changes: 3 additions & 3 deletions test/source/test_xnGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#include <vector> // for vector
#include <xnetwork/classes/graph.hpp> // for Graph, SimpleGraph

#if __cplusplus > 201703L
#include <cppcoro/generator.hpp> // for operator!=, generator
#endif
// #if __cplusplus > 201703L
// #include <cppcoro/generator.hpp> // for operator!=, generator
// #endif

/**
* @brief
Expand Down

0 comments on commit 1c222fa

Please sign in to comment.