Skip to content

Commit ec19e13

Browse files
committed
[style] change some style info
1 parent 67cb5b8 commit ec19e13

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

python/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ project(PyCGraph)
55
set(CMAKE_CXX_STANDARD 11)
66
set(CMAKE_CXX_STANDARD_REQUIRED True)
77

8-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -shared -pthread -fPIC")
8+
IF(UNIX)
9+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -shared -pthread -fPIC")
10+
ENDIF()
911

1012
find_package(pybind11 CONFIG REQUIRED)
1113

python/PyCGraph.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ PYBIND11_MODULE(PyCGraph, m) {
5353
py::class_<PyGRegion, GElement, std::unique_ptr<PyGRegion, py::nodelete> >(m, "GRegion")
5454
.def(py::init<>())
5555
.def("addGElements", &PyGRegion::addGElements,
56-
py::arg("elements"))
57-
;
56+
py::arg("elements"));
5857

5958
py::class_<PywGCondition, GElement, std::unique_ptr<PywGCondition, py::nodelete> >(m, "GCondition")
6059
.def(py::init<>())

0 commit comments

Comments
 (0)