Skip to content

Commit

Permalink
fix compile issues on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffamstutz committed May 19, 2023
1 parent beacb9c commit e5c9548
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ PUBLIC
${CMAKE_CURRENT_LIST_DIR}/header
)

target_link_libraries(${PROJECT_NAME} PUBLIC anari helium anari_test_scenes)
target_link_libraries(${PROJECT_NAME} PUBLIC glm::glm helium anari_test_scenes)

find_package(Python3 REQUIRED COMPONENTS Interpreter)

Expand Down
6 changes: 5 additions & 1 deletion libs/anari/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ project_add_library(
)

if (NOT BUILD_SHARED_LIBS)
target_compile_definitions(${PROJECT_NAME} PUBLIC -DANARI_STATIC_DEFINE)
project_compile_definitions(PUBLIC -DANARI_STATIC_DEFINE)
endif()

if (WIN32)
project_compile_definitions(PUBLIC -D_USE_MATH_DEFINES)
endif()

project_include_directories(
Expand Down
3 changes: 2 additions & 1 deletion libs/anari_test_scenes/scenes/scene.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ namespace scenes {

using box3 = std::array<anari::float3, 2>; // bounds_lower, bounds_upper;

struct TestScene : public helium::ParameterizedObject
struct ANARI_TEST_SCENES_INTERFACE TestScene
: public helium::ParameterizedObject
{
virtual anari::World world() = 0;
virtual box3 bounds();
Expand Down

0 comments on commit e5c9548

Please sign in to comment.