Did you use a released version of the library or the version from the develop branch?.This is with LLVM for Windows and happens with the ClangCL toolset for VS2019 and the Ninja generator in CMake 3.15+ Which compiler and operating system are you using? Is it a supported compiler?Ĭlang 9.0.0 but the same behavior occurs with 8.0.0/8.0.1.And what is the actual behavior instead?Ī ton of errors along the line of error: expected '>'enable_if_t::value and.Target_include_directories(test SYSTEM PRIVATE "") Can you provide a small but working code example? Please describe the steps to reproduce the issue.This happened to me due to using nlohmann from hunter with LLVM for Windows. isystem is used whenever nlohmann is provided as part of an imported CMake target. I have to turn on CMAKE_NO_SYSTEM_FROM_IMPORTED and force the include path to be used as -I instead of -isystem. When including json.hpp if the include directory is marked as a system include (-isystem rather than -I) it will fail to build
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |