From de858d67307dfd3ef0c3f852a2558b84da57bbd3 Mon Sep 17 00:00:00 2001 From: Jonathan Stone Date: Tue, 7 Jan 2025 12:27:41 -0800 Subject: [PATCH] Build fixes for OSL on Windows This changelist contains two fixes for OSL builds on the Windows platform, both of which were authored by Kai Rohmer at NVIDIA. --- src/testrender/CMakeLists.txt | 2 +- src/testshade/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/testrender/CMakeLists.txt b/src/testrender/CMakeLists.txt index c4ab69e7a..7643eba57 100644 --- a/src/testrender/CMakeLists.txt +++ b/src/testrender/CMakeLists.txt @@ -79,7 +79,7 @@ add_executable (testrender ${testrender_srcs}) target_link_libraries (testrender PRIVATE - oslexec oslquery + oslexec oslquery oslcomp pugixml::pugixml Threads::Threads) diff --git a/src/testshade/CMakeLists.txt b/src/testshade/CMakeLists.txt index e8d72cfc0..ba17cec31 100644 --- a/src/testshade/CMakeLists.txt +++ b/src/testshade/CMakeLists.txt @@ -2,6 +2,8 @@ # SPDX-License-Identifier: BSD-3-Clause # https://github.com/AcademySoftwareFoundation/OpenShadingLanguage +set (LLVM_COMPILE_FLAGS ${LLVM_COMPILE_FLAGS} "-std=c++17") + # The 'testshade' executable set ( testshade_srcs testshade.cpp