From 8d611a59abda4ec9eb8a1896c7a3f3b76a1daa67 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 21 Jul 2022 20:17:46 +0100 Subject: [PATCH] Windows build fix. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d6afc594..9568ae52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,9 @@ if(APPLE) endif() add_library(common-options INTERFACE) -target_compile_options(common-options INTERFACE -Wall -Wextra -Wconversion) +if(NOT WIN32) + target_compile_options(common-options INTERFACE -Wall -Wextra -Wconversion) +endif() include(GNUInstallDirs) include(CheckIncludeFiles)