Skip to content

Commit

Permalink
Merge pull request wassimj#29 from chenecharry/main
Browse files Browse the repository at this point in the history
Build for Linux fixes and a silly bug squash
  • Loading branch information
Wassim Jabi authored Oct 25, 2021
2 parents 8560859 + 728785f commit c13bb4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Python-Bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ cmake_minimum_required(VERSION 3.10)
project(topologic)

set(CMAKE_CXX_STANDARD 17)
IF(MSVC)
list(APPEND CMAKE_PREFIX_PATH "./pybind")
IF(MSVC)
find_package(PythonLibs REQUIRED)
ENDIF(MSVC)

list(APPEND CMAKE_PREFIX_PATH "./pybind")
find_package(pybind11 REQUIRED)

include_directories(${PYTHON_INCLUDE_DIRS})
Expand Down Expand Up @@ -37,6 +37,9 @@ set(ADDITIONAL_LIBRARY_DEPENDENCIES
IF(MSVC)
SET_PROPERTY(TARGET TopologicCore PROPERTY IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/../output/${CMAKE_GENERATOR_PLATFORM}/${CMAKE_BUILD_TYPE}/TopologicCore.dll)
SET_PROPERTY(TARGET TopologicCore PROPERTY IMPORTED_IMPLIB ${CMAKE_CURRENT_LIST_DIR}/../output/${CMAKE_GENERATOR_PLATFORM}/${CMAKE_BUILD_TYPE}/TopologicCore.lib)
else(MSVC)
find_library(TOPOLOGIC_CORE TopologicCore)
SET_PROPERTY(TARGET TopologicCore PROPERTY IMPORTED_LOCATION ${TOPOLOGIC_CORE})
ENDIF(MSVC)

set(SRC_FILES
Expand Down
2 changes: 1 addition & 1 deletion Python-Bindings/src/WireUtility.Binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void register_WireUtility_class(py::module& m) {
[](const TopologicCore::Wire::Ptr& kpWire,
const double kTolerance)
{
WireUtility::RemoveCollinearEdges(kpWire, kTolerance);
return WireUtility::RemoveCollinearEdges(kpWire, kTolerance);
},
" ", py::arg("kpWire"), py::arg("kTolerance"))
;
Expand Down

0 comments on commit c13bb4d

Please sign in to comment.