diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b2d0d22..99aa4031 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,10 @@ project(multivariate-splines) cmake_minimum_required(VERSION 2.8) set(CMAKE_BUILD_TYPE Release) +if(WIN32) + set(CMAKE_CXX_FLAGS_RELEASE "-O2") +endif(WIN32) + set(MULTIVARIATESPLINES_VERSION_MAJOR 1) set(MULTIVARIATESPLINES_VERSION_MINOR 2) set(MULTIVARIATESPLINES_VERSION ${MULTIVARIATESPLINES_VERSION_MAJOR}-${MULTIVARIATESPLINES_VERSION_MINOR})