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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user