mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
cmake: fix build with CMake 3.9.0
This commit is contained in:
parent
12ed7ca63e
commit
22f12dc93c
@ -323,10 +323,7 @@ MACRO(ADD_NATIVE_PRECOMPILED_HEADER _targetName _input)
|
|||||||
|
|
||||||
get_target_property(_sources ${_targetName} SOURCES)
|
get_target_property(_sources ${_targetName} SOURCES)
|
||||||
foreach(src ${_sources})
|
foreach(src ${_sources})
|
||||||
if(NOT "${src}" MATCHES "\\.mm$"
|
if("${src}" MATCHES "\\.c(pp|xx)?$")
|
||||||
AND NOT "${src}" MATCHES "\\.h$" AND NOT "${src}" MATCHES "\\.hpp$" # header files
|
|
||||||
AND NOT "${src}" MATCHES "^\$" # CMake generator expressions
|
|
||||||
)
|
|
||||||
get_source_file_property(oldProps "${src}" COMPILE_FLAGS)
|
get_source_file_property(oldProps "${src}" COMPILE_FLAGS)
|
||||||
get_source_file_property(oldProps2 "${src}" COMPILE_DEFINITIONS)
|
get_source_file_property(oldProps2 "${src}" COMPILE_DEFINITIONS)
|
||||||
if(NOT oldProps AND NOT oldProps2)
|
if(NOT oldProps AND NOT oldProps2)
|
||||||
|
Loading…
Reference in New Issue
Block a user