Skip to content

Commit

Permalink
Add VSCode configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
DDoSolitary committed Nov 2, 2020
1 parent ac6ce0c commit c8200f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmake-build-*/
.vs/
out/
build/
CMakeSettings.json
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"cmake.configureOnOpen": true,
"cmake.configureArgs": [
"-DCMAKE_TOOLCHAIN_FILE=${env:VCPKG_INSTALLATION_ROOT}\\scripts\\buildsystems\\vcpkg.cmake",
"-DVCPKG_TARGET_TRIPLET=x64-windows-static"
],
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools"
}
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.17)

execute_process(
COMMAND git describe --tags
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE LxRunOffline_VERSION_STR
RESULT_VARIABLE GIT_RESULT
OUTPUT_STRIP_TRAILING_WHITESPACE
Expand Down

0 comments on commit c8200f2

Please sign in to comment.