diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ec05aa84..4d1db8074 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -227,6 +227,10 @@ include(CheckCCompilerFlag) include(CheckCXXCompilerFlag) # +# we will check if yosys already exist. if not then build it +if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/yosys/install/bin/yosys) + message(STATUS "Yosys pre-build exist so skipping it") +else () # run makefile provided, we pass-on the options to the local make file add_custom_target( yosys ALL @@ -248,6 +252,7 @@ add_custom_target( ) add_dependencies(yosys-plugins yosys) +endif() # run make to extract compiler options, linker options and list of source files #add_custom_target( diff --git a/libs/EXTERNAL/libargparse/src/argparse.cpp b/libs/EXTERNAL/libargparse/src/argparse.cpp index 72071f1fc..3e144b15f 100644 --- a/libs/EXTERNAL/libargparse/src/argparse.cpp +++ b/libs/EXTERNAL/libargparse/src/argparse.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include "argparse.hpp" #include "argparse_util.hpp"