-
Notifications
You must be signed in to change notification settings - Fork 254
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
MSVC unknown compiler version 1940 #653
Comments
Conan version? Please provide more details to reproduce that issue. What files, commands are you using? What is the full output? |
Conan version -> 2.5.0 -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045. -- Configuring incomplete, errors occurred! C:\Users\user\Desktop\Unitedtopia\server\build>cmake --build . also used "cmake -G "Visual Studio 17 2022" to generate the project files but im getting same error " Conan: Unknown MSVC compiler version [1940]" |
So it seems you are using the cmake-conan integration, this wouldn't be a Conan issue, but a cmake-conan one |
So i suppose someone else should reply right? |
It seems you are using an outdated |
"Language 'CXX' is currently being enabled. Recursive call not allowed." while using the |
Sorry, I don't know what you mean, or how you are getting that message. Can you please provide detailed and complete reproduction instructions? I'd need a minimal |
My
The command im using: Output:
|
You need to provide the file Also, the example is not complete, as we don't have the |
Tell me what you need to be able to help me and i can send you |
It is explained in the readme: https://github.com/conan-io/cmake-conan
cmake-conan works with a CMake provider. You need to pass the right location to the provider. |
I did all of that just right now, i put the
& i still get the same error as before Output:
Also if i open the "src" folder wich contains
|
I think there is still something else that is not being reported.
The error message:
doesn't make sense. This is CMake, not Conan doing this, and CMake is just failing to find that file, so there is someone else somewhere setting |
If you sayin that this is because of CMake, what am i supposed to do? |
This is legacy Conan 1 integration, shouldn't be used anymore. The |
It's an old project that i decided to continue. So i figured something and i replace a few things. After using the command The output is now:
|
The error message indicates you are doing something else than passing |
CMakeLists.txt where
Im not sure what exactly i should reproduce from |
if (CONAN_EXPORTED)
include(${CMAKE_CURRENT_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
else ()
include(${CMAKE_CURRENT_SOURCE_DIR}/conan.cmake)
conan_cmake_configure(REQUIRES
fmt/9.0.0
libcurl/8.1.2
mariadb-connector-c/3.3.3
sqlpp11/0.61
magic_enum/0.9.2
nlohmann_json/3.11.2
spdlog/1.11.0
GENERATORS cmake_find_package
IMPORTS "bin, *.dll -> ./bin"
OPTIONS
fmt:shared=True
openssl:shared=True
libcurl:shared=True
spdlog:shared=True
mariadb-connector-c:shared=True)
conan_cmake_autodetect(settings)
conan_cmake_install(PATH_OR_REFERENCE .
BUILD missing
REMOTE conancenter
SETTINGS ${settings})
endif () this is the legacy thing that needs to be fully removed I'd also remove the
In the |
ok, i will try this later and come with a response |
did you solve the problem? |
I was able to solve this for conan<2 like so:
|
Cool I'll try it then, Thx edit: The error was solved and now i can build perfectly thanks >_ |
What is your question?
Conan: Unknown MSVC compiler version [1940]
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: