Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMAKE FetchContent Build Error #111

Open
ron3545 opened this issue Apr 27, 2024 · 0 comments
Open

CMAKE FetchContent Build Error #111

ron3545 opened this issue Apr 27, 2024 · 0 comments

Comments

@ron3545
Copy link

ron3545 commented Apr 27, 2024

Using FetchContent API on repoc 14.2.5 causes an error:

[cmake] -- Configuring incomplete, errors occurred!
[cmake] CMake Error at C:/Program Files/CMake/share/cmake-3.27/Modules/FetchContent.cmake:1662 (message):
[cmake]   Build step for reproc failed: 1

Call Stack (most recent call first):
[cmake]   C:/Program Files/CMake/share/cmake-3.27/Modules/FetchContent.cmake:1802:EVAL:2 (__FetchContent_directPopulate)
[cmake]   C:/Program Files/CMake/share/cmake-3.27/Modules/FetchContent.cmake:1802 (cmake_language)
[cmake]   C:/Program Files/CMake/share/cmake-3.27/Modules/FetchContent.cmake:2016 (FetchContent_Populate)
[cmake]   src/CMakeLists.txt:25 (FetchContent_MakeAvailable)

Here is my cmake script:

include(FetchContent)
FetchContent_Declare(
    reproc
    GIT_REPOSITORY https://github.com/DaanDeMeyer/reproc.git

    GIT_TAG 14.2.5
)
FetchContent_MakeAvailable(reproc)

add_executable(${PROJECT_NAME} WIN32  RoboMaster_Core.cpp)

target_link_libraries(${PROJECT_NAME} PRIVATE 
    imgui 
    CodeEditor
    d3d11.lib 
    Algo
    mio
    Imagehandler
    reproc++
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant