Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Unstructured demo on Windows #40

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ cmake_minimum_required(VERSION 3.15)

project(ospray_studio VERSION 1.2.0 LANGUAGES CXX C)

# https://gitlab.kitware.com/cmake/cmake/-/issues/18837
if (MSVC AND (MSVC_VERSION GREATER_EQUAL 1914))
add_compile_options(/Zc:__cplusplus)
endif()

include(GNUInstallDirs)
include(ProcessorCount)

Expand Down
2 changes: 1 addition & 1 deletion sg/generator/UnstructuredVol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void UnstructuredVol::generateData()
std::vector<uint32_t> cells = {0, 8, 14, 18};

// define cell types
std::vector<OSPUnstructuredCellType> cellTypes = {
std::vector<uint8_t> cellTypes = {
OSP_HEXAHEDRON, OSP_WEDGE, OSP_TETRAHEDRON, OSP_PYRAMID};

auto &volume = tf.createChild("unstructured_volume", "volume_unstructured");
Expand Down
Loading