Commit 179df263 authored by Ghislain MARY's avatar Ghislain MARY

Prevent CMake from using -isystem instead of -I for include directories of...

Prevent CMake from using -isystem instead of -I for include directories of targets imported by find_package().
parent a49c4d59
...@@ -98,6 +98,7 @@ list(APPEND LINPHONE_BUILDER_EP_VARS ...@@ -98,6 +98,7 @@ list(APPEND LINPHONE_BUILDER_EP_VARS
CMAKE_MODULE_LINKER_FLAGS:STRING CMAKE_MODULE_LINKER_FLAGS:STRING
CMAKE_MODULE_PATH:PATH CMAKE_MODULE_PATH:PATH
CMAKE_NO_BUILD_TYPE:BOOL CMAKE_NO_BUILD_TYPE:BOOL
CMAKE_NO_SYSTEM_FROM_IMPORTED:BOOL
CMAKE_PREFIX_PATH:STRING CMAKE_PREFIX_PATH:STRING
CMAKE_PROGRAM_PATH:STRING CMAKE_PROGRAM_PATH:STRING
CMAKE_RUNTIME_OUTPUT_DIRECTORY:PATH CMAKE_RUNTIME_OUTPUT_DIRECTORY:PATH
......
...@@ -65,6 +65,7 @@ class Target: ...@@ -65,6 +65,7 @@ class Target:
cmd += ['-A', self.platform_name] cmd += ['-A', self.platform_name]
cmd += ['-DCMAKE_BUILD_TYPE=' + build_type] cmd += ['-DCMAKE_BUILD_TYPE=' + build_type]
cmd += ['-DCMAKE_PREFIX_PATH=' + self.output_dir(), '-DCMAKE_INSTALL_PREFIX=' + self.output_dir()] cmd += ['-DCMAKE_PREFIX_PATH=' + self.output_dir(), '-DCMAKE_INSTALL_PREFIX=' + self.output_dir()]
cmd += ['-DCMAKE_NO_SYSTEM_FROM_IMPORTED=YES']
cmd += ['-DLINPHONE_BUILDER_WORK_DIR=' + self.abs_work_dir] cmd += ['-DLINPHONE_BUILDER_WORK_DIR=' + self.abs_work_dir]
if self.toolchain_file is not None: if self.toolchain_file is not None:
cmd += ['-DCMAKE_TOOLCHAIN_FILE=' + self.toolchain_file] cmd += ['-DCMAKE_TOOLCHAIN_FILE=' + self.toolchain_file]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment