We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Я использую cmake 3.22.2 на Windows 10
Когда я убираю галку с 64BIT, я получаю ошибку
CMake Error at CMakeLists.txt:59 (error): Unknown CMake command "error".
cmakelists.txt
if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT 64BIT) if(MSVC) ---->error("UNDONE: set 32 build flags") else() set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m32") endif() set(CMAKE_SIZEOF_VOID_P 4) endif()
Но когда я немного подредактировал файл
if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT 64BIT) if(MSVC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m32") endif() set(CMAKE_SIZEOF_VOID_P 4) endif()
Всё нормально конфигурируется
Building for 32 Bit Configuring done
64BIT
Building for 64 Bit Configuring done
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Я использую cmake 3.22.2 на Windows 10
Когда я убираю галку с 64BIT, я получаю ошибку
cmakelists.txt
Но когда я немного подредактировал файл
Всё нормально конфигурируется
64BIT
The text was updated successfully, but these errors were encountered: