configures tcc to be build locally if not done

This commit is contained in:
Eyck Jentzsch 2022-11-06 18:16:42 +01:00
parent 5775d7a451
commit 70c44f4857
1 changed files with 7 additions and 1 deletions

View File

@ -67,7 +67,7 @@ boost:without_wave=True
) )
set(B2_VERSION 4.8.0) set(B2_VERSION 4.8.0)
set(CONAN_PACKAGE_LIST fmt/6.1.2 zlib/1.2.11 b2/${B2_VERSION} boost/1.75.0 gsl-lite/0.37.0 elfio/3.8 tcc/0.9.27 seasocks/1.4.4) set(CONAN_PACKAGE_LIST fmt/6.1.2 zlib/1.2.11 b2/${B2_VERSION} boost/1.75.0 gsl-lite/0.37.0 elfio/3.8 seasocks/1.4.4)
set(CONAN_PACKAGE_OPTIONS seasocks:shared=True fmt:header_only=True ${CONAN_BOOST_OPTIONS}) set(CONAN_PACKAGE_OPTIONS seasocks:shared=True fmt:header_only=True ${CONAN_BOOST_OPTIONS})
if(FORCE_SYSTEMC OR NOT DEFINED ENV{SYSTEMC_HOME}) if(FORCE_SYSTEMC OR NOT DEFINED ENV{SYSTEMC_HOME})
@ -97,6 +97,12 @@ conan_cmake_configure(REQUIRES ${CONAN_PACKAGE_LIST}
) )
conan_install() conan_install()
# forca a local build of tcc to make sure path to libtcc1.a is correct
conan_configure(REQUIRES tcc/0.9.27)
conan_cmake_autodetect(settings)
set(settings ${settings} compiler.cppstd=${CMAKE_CXX_STANDARD})
conan_cmake_install(PATH_OR_REFERENCE . BUILD tcc SETTINGS ${settings})
#conan_setup(TARGETS) #conan_setup(TARGETS)
include(conanbuildinfo) include(conanbuildinfo)
find_package(tcc) find_package(tcc)