From 0e5e8b7351f5f5b5f5d9dc4fa7b697b3387b8aea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Tabin?= Date: Mon, 23 May 2022 23:21:31 +0200 Subject: [PATCH] Fixes CMake on Win32 --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2bfe35f..0999294 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,9 +19,11 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) endif() -set(CMAKE_CXX_FLAGS "-W -Wall -Wextra -ansi -pedantic -std=c++11") -set(CMAKE_CXX_FLAGS_DEBUG "-g") -set(CMAKE_CXX_FLAGS_RELEASE "-O3") +if(NOT WIN32) + set(CMAKE_CXX_FLAGS "-W -Wall -Wextra -ansi -pedantic -std=c++11") + set(CMAKE_CXX_FLAGS_DEBUG "-g") + set(CMAKE_CXX_FLAGS_RELEASE "-O3") +endif() option(LIBZIPPP_INSTALL "Install library" ${is_root_project}) option(LIBZIPPP_INSTALL_HEADERS "Install the headers" ${is_root_project})