Skip to content

CMake error at building _deps #7

@NahuFigueroa97

Description

@NahuFigueroa97

Hi! m2osw! great work! i try attach your library in my project:

# ###################################################################################################
# Dependencies
# ###################################################################################################
CPMAddPackage(
    NAME tld-cpp
    GITHUB_REPOSITORY m2osw/libtld
    GIT_TAG 0555304f3297bdf790223c956c2f67fb3e26bae3 # Latest master commit from 10/10/2023
    VERSION 2.0.5
)

# ###################################################################################################
# Test
# ###################################################################################################
if(ENGINE_BUILD_TEST)

set(TEST_SRC_DIR ${CMAKE_CURRENT_LIST_DIR}/test/src)
set(UNIT_SRC_DIR ${TEST_SRC_DIR}/unit)

add_executable(tld_utest
    ${UNIT_SRC_DIR}/poc_test.cpp
)
target_link_libraries(tld_utest PRIVATE tld-cpp gtest_main)
gtest_discover_tests(tld_utest)

endif(ENGINE_BUILD_TEST)

but i get this error:

CMake Error at build/_deps/tld-cpp-src/CMakeLists.txt:38 (find_package):By not providing "FindSnapCMakeModules.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"SnapCMakeModules", but CMake did not find one.

Could not find a package configuration file provided by "SnapCMakeModules"
with any of the following names:

  SnapCMakeModulesConfig.cmake
  snapcmakemodules-config.cmake

Add the installation prefix of "SnapCMakeModules" to CMAKE_PREFIX_PATH or
set "SnapCMakeModules_DIR" to a directory containing one of the above
files.  If "SnapCMakeModules" provides a separate development package or
SDK, be sure it has been installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions