Skip to content

Commit

Permalink
Fixed mingw compilation on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabunin committed Feb 22, 2018
1 parent e851a41 commit 3fd2384
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/OpenCVPCHSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ MACRO(ADD_PRECOMPILED_HEADER_TO_TARGET _targetName _input _pch_output_to_use )

GET_TARGET_PROPERTY(_sources ${_targetName} SOURCES)
FOREACH(src ${_sources})
if(NOT "${src}" MATCHES "\\.mm$")
if(NOT "${src}" MATCHES "\\.mm$" AND NOT "${src}" MATCHES "\\.rc$")
get_source_file_property(_flags "${src}" COMPILE_FLAGS)
get_source_file_property(_flags2 "${src}" COMPILE_DEFINITIONS)
if(NOT _flags AND NOT _flags2)
Expand Down
1 change: 1 addition & 0 deletions modules/core/src/utils/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#undef NOMINMAX
#define NOMINMAX
#include <windows.h>
#include <direct.h>
Expand Down

0 comments on commit 3fd2384

Please sign in to comment.