Commit 269fb490 authored by Isaak Lim's avatar Isaak Lim

set c++ standard 11 globally

parent d6fb5ba4
Pipeline #6216 passed with stages
in 5 minutes and 13 seconds
cmake_minimum_required(VERSION 3.1.0)
# Fix behavior of CMAKE_CXX_STANDARD when targeting macOS.
if (POLICY CMP0025)
cmake_policy(SET CMP0025 NEW)
endif ()
project(openmesh)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(OPENMESH_BUILD_PYTHON_BINDINGS OFF)
......@@ -26,11 +23,6 @@ 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)
......@@ -49,4 +41,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