diff --git a/CMakeLists.txt b/CMakeLists.txt index 616b1613..09cbac97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -272,9 +272,9 @@ link_directories(${PROJECT_BINARY_DIR}) # Load all of our third party directories add_subdirectory(thirdparty) - -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") - +if (UNIX) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") +endif() # Glob together all headers that need to be precompiled file( GLOB HEADERS_DDATABASE