Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cmake build with external surelog, fix cmake install command (chi…
…psalliance#2213) When building against external surelog/yosys: ``` cmake -DSYNLIG_USE_HOST_SURELOG=ON -DSYNLIG_USE_HOST_CAPNP=ON -DSYNLIG_USE_HOST_GTEST=ON -DSYNLIG_USE_HOST_YOSYS=OFF -DYOSYS_CONFIG=yosys-config -DYOSYS_PATH=/opt/homebrew/Cellar/yosys/0.35/share/yosys/include -DSYNLIG_WITH_TCMALLOC=OFF -DSYNLIG_WITH_ZLIB=ON -B build_shared -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CXX_COMPILER_LAUNCHER=/opt/homebrew/bin/ccache -DBUILD_SHARED_LIBS=ON . ``` Before: ``` CMake Error at CMakeLists.txt:284 (add_dependencies): The dependency target "surelog" of target "synlig" does not exist. CMake Error at CMakeLists.txt:285 (add_dependencies): The dependency target "uhdm" of target "synlig" does not exist. ``` After: Works. Similarly for the `cmake --install` command, before: ``` CMake Error at build_shared/cmake_install.cmake:41 (file): file INSTALL cannot find "synlig/build_shared/SynligConfig.cmake": No such file or directory. ``` After: Works. xref: https://github.com/dau-dev/tools/releases/tag/v0.0.2
- Loading branch information