Skip to content

Commit 9ea7d41

Browse files
author
John Novak
committed
Update Windows build instructions for static linking
1 parent aad5d1b commit 9ea7d41

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
1111

1212
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules/")
1313

14-
set(VCPKG_LIBRARY_LINKAGE static)
15-
1614
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" OR CMAKE_SYSTEM_NAME STREQUAL "Linux")
17-
add_compile_options(-Wall -Wextra -Wno-unused-parameter)
15+
add_compile_options(-Wall -Wextra -Wno-unused-parameter)
1816
endif ()
1917

2018
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ enviroment variable accordingly.
150150

151151
First you'll need to configure the project:
152152

153-
cmake -G "Visual Studio 17 2022" --preset=ninja
153+
cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static-md -G "Visual Studio 17 2022" --preset=ninja
154154

155155
Use either command to build the **debug artifact** (this will create the
156156
`Nuked-SC55.clap` plugin in `build\Debug`):

0 commit comments

Comments
 (0)