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

Can't work with cmake FetchContent #23

Open
loveyacper opened this issue Jan 3, 2023 · 0 comments
Open

Can't work with cmake FetchContent #23

loveyacper opened this issue Jan 3, 2023 · 0 comments

Comments

@loveyacper
Copy link

loveyacper commented Jan 3, 2023

use libsdptransform with cmake FetchContent as below:

FetchContent_Declare(
    sdptransform
    GIT_REPOSITORY https://github.com/loveyacper/libsdptransform.git
    GIT_TAG master
)
FetchContent_MakeAvailable(sdptransform)

cmake version is 3.18.2, gcc version is 8.4.1.

Compiler generates errors like this:

fatal error: sdptransform.hpp: No such file or directory
 #include "sdptransform.hpp"

To fix it, we should add one line in CMakeLists.txt:

target_include_directories(sdptransform PUBLIC ${PROJECT_SOURCE_DIR}/include)
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