About 3,410,000 results
Open links in new tab
  1. c++ - How do I use CMake? - Stack Overflow

    I am trying to use CMake in order to compile opencv. I am reading the tutorial but can't understand what is CMakeLists files and how is it connected to the gui of CMake? Also couldn't understand ...

  2. Using cmake on windows for c++ - Stack Overflow

    Apr 30, 2016 · for around 5 consecutive days i have been trying to set up my computer with the c++ environment for programming with libraries such as sdl,glm,opengl. its important for us to be able to …

  3. c++ - Platform detection in CMake - Stack Overflow

    So CMAKE_HOST_WIN32 is the correct flag to use considering OP's question literally "when I am building on Windows". In many cases WIN32 and CMAKE_HOST_WIN32 will be equivalent, but not …

  4. How do I build a CMake project? - Stack Overflow

    May 6, 2021 · I have just acquired an arbitrary CMake project from the internet and I am not sure how to compile it. What commands do I need to run to build it from the command line?

  5. windows - How to change the build type to Release mode in cmake ...

    Feb 23, 2016 · To change the build type, on Windows, it must be done at build time: cmake --build {DIR} --config Release By default it's Debug. I'm still looking for a way of changing this default. …

  6. How to build x86 and/or x64 on Windows from command line with …

    You cannot generate a single Visual Studio project covering both architectures with CMake, either. To build Visual Studio projects from the command line for both 32-bit and 64-bit without starting a Visual …

  7. 'cmake' is not recognised as an internal or external command

    Oct 4, 2013 · Windows likes backslashes in certain places like environment paths, and settings files, while cmake likes forward slashes. You need at some point to convert between the different formats.

  8. How do I tell CMake to link in a static library in the source directory ...

    Jan 5, 2017 · If you don't want to include the full path, you can do add_executable(main main.cpp) target_link_libraries(main bingitup) bingitup is the same name you'd give a target if you create the …

  9. CMake does not find Visual C++ compiler - Stack Overflow

    Jul 25, 2015 · Maybe the installation path of 2015 is not what CMake expect? Which version of CMake do you use? Also, I don't know about the Windows version of CMake, but it might be possible that …

  10. How do I tell CMake to use Clang on Windows? - Stack Overflow

    I have a C++ project that builds using CMake. I usually build on OSX but now I am trying to get a Windows version working too. I would like to use Clang on Windows for compatibility reasons. I