]> granicus.if.org Git - esp-idf/commit
soc: fix compiling unit tests with CMake
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 19 Mar 2019 03:42:51 +0000 (11:42 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Tue, 19 Mar 2019 03:42:51 +0000 (11:42 +0800)
commit73851e0b5c9643beca26ce8deaa94347cdb6b93b
tree34b4487d20ee532a6dc29800b91b604369b7673a
parent96aa08a0ffea682957c79e400be0b49ae5d88c81
soc: fix compiling unit tests with CMake

soc unit tests have not been included when compiling with CMake,
because ../${SOC_NAME}/test was not evaluated relative to the
CMakeLists.txt directory.

Also call register_components() regardless of the presence of test
directory for particular target.
components/soc/test/CMakeLists.txt