cmake stuff

This commit is contained in:
looooo
2018-04-10 20:25:43 +02:00
committed by wmayer
parent 37fb72e508
commit c518744e39
3 changed files with 1 additions and 6 deletions

View File

@@ -589,6 +589,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endif(FREECAD_USE_PCL)
# -------------------------------- PyBind11 -----------------------------
# necessary for flat-mesh feature
OPTION(FREECAD_USE_PYBIND11 "Use pybind11" OFF)
if (FREECAD_USE_PYBIND11)
find_package(pybind11 REQUIRED)

View File

@@ -90,10 +90,6 @@ if (FREECAD_USE_PYBIND11)
MeshFlatteningNurbs.cpp
MeshFlatteningLscmRelax.h
MeshFlatteningLscmRelax.cpp
)
SET(FLATMESH_SRCS
${FLATMESH_SRCS}
MeshFlatteningPy.cpp
)

View File

@@ -12,8 +12,6 @@ include_directories(${PYTHON_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
OPTION(USE_BOOST_PYTHON "use BOOST_PYTHON, otherwise use PYBIND11" ON)
if(NOT FREECAD_USE_PYBIND11)
if(NOT FREECAD_LIBPACK_USE OR FREECAD_LIBPACK_CHECKFILE_CLBUNDLER)
# boost-python >= 1.67 on some platforms has suffix