Added using toolchain files in CMakeSetting.json
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
"buildCommandArgs": "",
|
"buildCommandArgs": "",
|
||||||
"ctestCommandArgs": "",
|
"ctestCommandArgs": "",
|
||||||
"inheritEnvironments": [ "msvc_x86" ],
|
"inheritEnvironments": [ "msvc_x86" ],
|
||||||
"variables": []
|
"cmakeToolchain": "windows-x86.cmake"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "x86-Release",
|
"name": "x86-Release",
|
||||||
@@ -22,7 +22,31 @@
|
|||||||
"buildCommandArgs": "",
|
"buildCommandArgs": "",
|
||||||
"ctestCommandArgs": "",
|
"ctestCommandArgs": "",
|
||||||
"inheritEnvironments": [ "msvc_x86" ],
|
"inheritEnvironments": [ "msvc_x86" ],
|
||||||
"variables": []
|
"cmakeToolchain": "windows-x86.cmake"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x64-Debug",
|
||||||
|
"generator": "Ninja",
|
||||||
|
"configurationType": "Debug",
|
||||||
|
"buildRoot": "${projectDir}\\out\\build\\${name}",
|
||||||
|
"installRoot": "${projectDir}\\out\\install\\${name}",
|
||||||
|
"cmakeCommandArgs": "",
|
||||||
|
"buildCommandArgs": "",
|
||||||
|
"ctestCommandArgs": "",
|
||||||
|
"inheritEnvironments": [ "msvc_x64_x64" ],
|
||||||
|
"cmakeToolchain": "windows-x64.cmake"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x64-Release",
|
||||||
|
"generator": "Ninja",
|
||||||
|
"configurationType": "RelWithDebInfo",
|
||||||
|
"buildRoot": "${projectDir}\\out\\build\\${name}",
|
||||||
|
"installRoot": "${projectDir}\\out\\install\\${name}",
|
||||||
|
"cmakeCommandArgs": "",
|
||||||
|
"buildCommandArgs": "",
|
||||||
|
"ctestCommandArgs": "",
|
||||||
|
"inheritEnvironments": [ "msvc_x64_x64" ],
|
||||||
|
"cmakeToolchain": "windows-x64.cmake"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,10 @@
|
|||||||
|
|
||||||
# specify the target system properties
|
# specify the target system properties
|
||||||
set(CMAKE_SYSTEM_NAME Windows)
|
set(CMAKE_SYSTEM_NAME Windows)
|
||||||
|
|
||||||
|
if (CMAKE_GENERATOR MATCHES "Visual Studio*")
|
||||||
set(CMAKE_GENERATOR_PLATFORM x64 CACHE INTERNAL "")
|
set(CMAKE_GENERATOR_PLATFORM x64 CACHE INTERNAL "")
|
||||||
|
endif()
|
||||||
|
|
||||||
# specify shared library suffix
|
# specify shared library suffix
|
||||||
set(SHARED_LIBRARY_SUFFIX ${CMAKE_GENERATOR_PLATFORM})
|
set(SHARED_LIBRARY_SUFFIX ${CMAKE_GENERATOR_PLATFORM})
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
|
|
||||||
# specify the target system properties
|
# specify the target system properties
|
||||||
set(CMAKE_SYSTEM_NAME Windows)
|
set(CMAKE_SYSTEM_NAME Windows)
|
||||||
|
|
||||||
|
if (CMAKE_GENERATOR MATCHES "Visual Studio*")
|
||||||
set(CMAKE_GENERATOR_PLATFORM Win32 CACHE INTERNAL "")
|
set(CMAKE_GENERATOR_PLATFORM Win32 CACHE INTERNAL "")
|
||||||
|
endif()
|
||||||
|
|
||||||
# specify shared library suffix
|
# specify shared library suffix
|
||||||
set(SHARED_LIBRARY_SUFFIX "x86")
|
set(SHARED_LIBRARY_SUFFIX "x86")
|
||||||
|
|||||||
Reference in New Issue
Block a user