Conan appears to ignore options. sdl:iconv=false is ignored when building with MiniGW64 on Windows.
See original GitHub issueI am using mingw64 on windows with cmake and conan.
The build for libiconv fails with mingw64 on Windows 10. SDL has an option to compile SDL without libiconv support but this fails.
I am using the following CMakeLists.txt
cmake_minimum_required(VERSION 3.10)
project(HelloSDL VERSION 0.1 DESCRIPTION "Hello SDL" LANGUAGES CXX)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
add_executable(HelloSDL src/01_hello_sdl.cpp)
target_link_libraries(HelloSDL ${CONAN_LIBS})
my conanfile.txt
[requires]
sdl/2.0.16
[options]
sdl2:iconv=False
[generators]
cmake
I am using the following profile to build
[build_requires]
[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=11.1
compiler.libcxx=libstdc++11
build_type=Debug
[options]
[env]
I am compiling using the following command in bash
$ conan install .. --build=missing --profile=../profiles/mingw64
Is there anything specific I am doing wrong?
- [x ] I’ve read the CONTRIBUTING guide.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Get Started with C++ and Mingw-w64 in Visual Studio Code
In this tutorial, you configure Visual Studio Code to use the GCC C++ compiler (g++) and GDB debugger from mingw-w64 to create programs...
Read more >Tutorial: Configure CLion on Windows - JetBrains
Configure a MinGW toolchain. Go to File | Settings | Build, Execution, Deployment | Toolchains.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Tried that. Works. 😄
Feel pretty dumb. Thanks for the help.
Glad to help, those things happen 😄