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})