The proper way of forcing a 32-bit compile using CMake

前端 未结 6 713
被撕碎了的回忆
被撕碎了的回忆 2020-12-07 15:40

Sorry that there are many similar questions, but I do find that Googling for CMake queries always yields similar-but-not-the-same scenarios, conflicting CMake commands and s

6条回答
  •  时光说笑
    2020-12-07 16:13

    CMAKE_CXX_FLAGS only affects the C++ compiler. You probably also have to set the flag for the C compiler:

    set (CMAKE_C_FLAGS "-m32")
    

提交回复
热议问题