cmake: Fix psram workaround compiler flag application
authorAngus Gratton <angus@espressif.com>
Fri, 22 Feb 2019 01:20:11 +0000 (12:20 +1100)
committerbot <bot@espressif.com>
Tue, 26 Feb 2019 04:07:51 +0000 (04:07 +0000)
commitda390618c2ab4868b0dc1ca85f7a25c3799358f1
tree69caec9336fba573f97be4f51479d30b2c235e31
parent3952d25a99ed8ce602503c87d38902a9ef9d0934
cmake: Fix psram workaround compiler flag application

Previously, this compiler flag was not being applied
regardless of CONFIG_SPIRAM_CACHE_WORKAROUND setting.

Explanation: add_compile_options() only applies to
source files added after the function is run, or in
subdirectories added after the function is run. In
this case, no new source files were being added after
this function was run.
components/esp32/CMakeLists.txt
components/esp32/Kconfig
components/esp32/project_include.cmake [new file with mode: 0644]
docs/en/api-guides/build-system-cmake.rst
docs/en/api-guides/build-system.rst
tools/ci/test_build_system_cmake.sh
tools/cmake/utilities.cmake