CMake and AUTOMOC: *syntax error: 'constant'* when using FetchContent
-
I've got a project where I'm including SQLite via FetchContent and whenever I include that external, I run into an error:
<build>\_deps\sqlite-src\version(1,1): error C2059: syntax error: 'constant'Initially I thought that the reason for this error was because I was using the
SOURCE_DIRproperty withFetchContent_Declarebut although I think this is somewhat related, I think that the root cause for this error is that I'm adding the directory of sqlite as an include directory. For example I'm doing something like:
include_directories(dir_to_sqlite_dep)Is there a way to solve this?
-
S snoriman referenced this topic on
-
Hi,
Can you provide a minimal project that shows this issue ?