2023-12-29-e97602e: #2213: Fix cmake build with external surelog, fix cmake install command
github-actions
released this
29 Dec 08:14
·
7 commits
to main
since this release
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.