When attempting to compile a new contract, I am getting this error. I'm using eosio version 2.1 for this.
CMake Error at /home/michael/eosio.cdt/build/lib/cmake/eosio.cdt/EosioCDTMacros.cmake:18 (set_source_files_properties):
set_source_files_properties called with incorrect number of arguments.
Call Stack (most recent call first):
CMakeLists.txt:12 (target_ricardian_directory)
Has anyone seen this before?
Here is the content for the CMakeLists.txt file:
project(equity)
set(EOSIO_WASM_OLD_BEHAVIOR "Off")
find_package(eosio.cdt)
add_contract( equity equity equity.cpp )
target_include_directories( equity PUBLIC ${CMAKE_SOURCE_DIR}/../include )
target_ricardian_directory( equity ${CMAKE_SOURCE_DIR}/../ricardian )
add_contract( equity equity_local equity.cpp )
target_include_directories( equity_local PUBLIC ${CMAKE_SOURCE_DIR}/../include )
target_ricardian_directory( equity_local ${CMAKE_SOURCE_DIR}/../ricardian )
target_compile_definitions( equity_local PUBLIC LOCAL )
add_contract(CONTRACT_NAME TARGET SOURCES)
? Usually it has a similar form toadd_contract(eosio.token eosio.token eosio.token.cpp)
.