From cfc8cfbd66e4b3cc04f256778adab1fbecd7073e Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Mon, 2 Dec 2024 16:38:14 +0100 Subject: [PATCH] Fix driver compilation with latest phnt --- test/CMakeLists.txt | 1 + test/driver.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 8d2112c..95958aa 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -10,6 +10,7 @@ if(NOT EXISTS "${phnt_DIR}/phnt.h") endif() # Default to a Release build +get_property(GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) if(GENERATOR_IS_MULTI_CONFIG) set(CMAKE_CONFIGURATION_TYPES "Release" CACHE STRING "") elseif(NOT DEFINED CACHE{CMAKE_BUILD_TYPE}) diff --git a/test/driver.cpp b/test/driver.cpp index fb68f19..d50f5a8 100644 --- a/test/driver.cpp +++ b/test/driver.cpp @@ -8,6 +8,7 @@ extern "C" #include #include #include +#include } #define PHNT_VERSION PHNT_WIN11