Skip to content

Commit f01c029

Browse files
committed
Merge pull request opencv#9202 from alalek:cmake-3.9.0
2 parents 928552a + 22f12dc commit f01c029

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmake/OpenCVPCHSupport.cmake

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,7 @@ MACRO(ADD_NATIVE_PRECOMPILED_HEADER _targetName _input)
323323

324324
get_target_property(_sources ${_targetName} SOURCES)
325325
foreach(src ${_sources})
326-
if(NOT "${src}" MATCHES "\\.mm$"
327-
AND NOT "${src}" MATCHES "\\.h$" AND NOT "${src}" MATCHES "\\.hpp$" # header files
328-
AND NOT "${src}" MATCHES "^\$" # CMake generator expressions
329-
)
326+
if("${src}" MATCHES "\\.c(pp|xx)?$")
330327
get_source_file_property(oldProps "${src}" COMPILE_FLAGS)
331328
get_source_file_property(oldProps2 "${src}" COMPILE_DEFINITIONS)
332329
if(NOT oldProps AND NOT oldProps2)

0 commit comments

Comments
 (0)