Try VCPKG_CHAINLOAD_TOOLCHAIN_FILE again
This commit is contained in:
parent
76c931656f
commit
abaa4f6381
2 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,7 @@
|
|||
cmake_minimum_required(VERSION 3.17)
|
||||
|
||||
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/toolchain.cmake")
|
||||
|
||||
find_package(Git QUIET)
|
||||
if (GIT_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
|
||||
# Update submodules as needed
|
||||
|
@ -26,8 +28,6 @@ set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/
|
|||
enable_language(CXX)
|
||||
project(pacman)
|
||||
|
||||
include(cmake/toolchain.cmake)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
|
||||
add_subdirectory(scaling-lib)
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#compile with warnings
|
||||
if(MSVC)
|
||||
if(WIN32)
|
||||
add_compile_options(/W4 /WX)
|
||||
else()
|
||||
add_compile_options(-Wall -Wextra -pedantic -Werror)
|
||||
endif()
|
||||
|
||||
#enable asan in debug
|
||||
if(MSVC)
|
||||
if(WIN32)
|
||||
add_compile_options("$<$<CONFIG:DEBUG>:-fsanitize=address>")
|
||||
else()
|
||||
add_compile_options("$<$<CONFIG:DEBUG>:-fsanitize=address>")
|
||||
|
@ -14,7 +14,7 @@ else()
|
|||
endif()
|
||||
|
||||
#enable ubsan in debug
|
||||
if(NOT MSVC)
|
||||
if(NOT WIN32)
|
||||
add_compile_options("$<$<CONFIG:DEBUG>:-fsanitize=undefined>"
|
||||
"$<$<CONFIG:DEBUG>:-fno-omit-frame-pointer>")
|
||||
add_link_options("$<$<CONFIG:DEBUG>:-fsanitize=undefined>")
|
||||
|
|
Loading…
Reference in a new issue