Skip to content

Issues with CMake and FetchContent_Declare #53

Description

@bensuperpc

I tried using this project with my CMakefile but it doesn't work

include(FetchContent)
FetchContent_Declare(
  safestringlib
  GIT_REPOSITORY https://github.com/intel/safestringlib.git
  GIT_TAG master)
  
set(BUILD_UNITTESTS
OFF
CACHE BOOL "" FORCE)

FetchContent_MakeAvailable(safestringlib)
target_link_libraries(crc32_crc32 PRIVATE safestringlib)

I have these errors:

/crc32/crc32.h:20:10: erreur fatale: safe_lib.h : Aucun fichier ou dossier de ce type
   20 | #include "safe_lib.h"
      |          ^~~~~~~~~~~~
/crc32/crc32.h:20:10: erreur fatale: safe_str_lib.h : Aucun fichier ou dossier de ce type
   20 | #include "safe_str_lib.h"
      |          ^~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions