-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
CLion support #175
Comments
Can you add some option to indicate that you're cross compiling for a Windows target, similar to |
my CMakeLists looks like this cmake_minimum_required(VERSION 3.30)
project(some_project)
set(CMAKE_GENERATOR_PLATFORM Win32) # Force 32-bit compilation
set(CMAKE_SYSTEM_PROCESSOR x86) # Specify x86 architecture
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_RELEASE} /MTd")
file(GLOB_RECURSE SOURCES "src/**")
add_library(some_project SHARED ${SOURCES})
target_link_libraries(some_project PRIVATE "${CMAKE_SOURCE_DIR}\\libs\\detours.lib") |
I think some of these variables need to be set already at the time of the |
nop same error |
I'm trying to get it work as a CLion Toolchain but when I set the compiler like this
CMake: Bundled
Build Tool: Detected: Ninja
C Compiler: /home/taxmachine/msvc/bin/x86/cl
C++ Compiler: /home/taxmachine/msvc/bin/x86/cl
Debugger: Bundled GDB
I get this error "Test CMake run finished with errors"
The text was updated successfully, but these errors were encountered: