Skip to content

Commit

Permalink
add vcpkg toolchain to cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmolka committed Jun 11, 2020
1 parent d61986a commit 1bfaaae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
cmake_minimum_required(VERSION 2.8)

# Must be set before project
if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" CACHE STRING "")
endif()

project(NanoboyAdvance CXX)

set(VERSION_MAJOR 0)
Expand Down

0 comments on commit 1bfaaae

Please sign in to comment.