1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00

cmake: don't add tests dirs as include directories

- use relative paths for includes
- fix PCH generation with GCC (dummy file has been used)
This commit is contained in:
Alexander Alekhin
2019-04-01 17:30:10 +03:00
parent 341e2fa72d
commit 2a2d195240
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -261,6 +261,7 @@ MACRO(ADD_PRECOMPILED_HEADER _targetName _input)
)
_PCH_GET_COMPILE_FLAGS(_compile_FLAGS)
list(APPEND _compile_FLAGS "${_PCH_include_prefix}\"${_path}\"")
get_target_property(type ${_targetName} TYPE)
if(type STREQUAL "SHARED_LIBRARY")