Commit b785a262 authored by Janis Born's avatar Janis Born

require C++11 for all targets

parent 586950c4
Pipeline #6212 failed with stages
in 3 minutes and 50 seconds
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.1.0)
project(openmesh)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
......@@ -21,6 +21,11 @@ acg_append_files(SOURCES "src/*.cc" .)
include_directories(${OPENMESH_INCLUDE_DIRS})
pybind11_add_module(openmesh ${HEADERS} ${SOURCES})
set_target_properties(
openmesh OpenMeshCore OpenMeshTools PROPERTIES
CXX_STANDARD 11
)
if (WIN32)
target_link_libraries(openmesh PRIVATE OpenMeshCore)
target_link_libraries(openmesh PRIVATE OpenMeshTools)
......@@ -30,7 +35,6 @@ else ()
target_link_libraries(openmesh PRIVATE OpenMeshToolsStatic)
endif ()
enable_testing()
add_test(
NAME discover_tests
......@@ -40,4 +44,4 @@ add_test(
set_tests_properties(
discover_tests PROPERTIES
ENVIRONMENT PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}
)
)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment