diff --git a/xc7/family.cmake b/xc7/family.cmake index cf917db0..e0a93bf2 100644 --- a/xc7/family.cmake +++ b/xc7/family.cmake @@ -23,11 +23,11 @@ if (NOT DEFINED TORC_ROOT) COMMAND $(MAKE) > /dev/null 2> /dev/null COMMENT "Building torc (may take some time...)" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/torc/src) - find_package(Boost REQUIRED COMPONENTS serialization iostreams ${boost_libs} ${boost_python_lib}) - set(TORC_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/torc) endif() +find_package(Boost REQUIRED COMPONENTS regex ${boost_libs} ${boost_python_lib}) + target_compile_definitions(nextpnr-${family} PRIVATE -DTORC_ROOT="${TORC_ROOT}") target_include_directories(nextpnr-${family} PUBLIC ${TORC_ROOT}/src) if (BUILD_TESTS)