mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-06 02:36:04 -04:00
Fix the compilation of example2 on latest MSVC
This commit is contained in:
parent
81e5a1f910
commit
93580bda24
@ -6,7 +6,8 @@ mkdir build
|
||||
cd build
|
||||
|
||||
@REM Generate a Visual Studio solution for latest version found
|
||||
cmake -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON ..
|
||||
REM -DPYTHON_EXECUTABLE=D:\workspace\Corvus\UnrealEngine\Engine\Binaries\ThirdParty\Python\Win64\python.exe
|
||||
cmake -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_RUN_CPPLINT=OFF ..
|
||||
@if ERRORLEVEL 1 goto onError
|
||||
|
||||
@REM Build default configuration (ie 'Debug')
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Example CMake file for compiling & linking a project with the the SQLiteCpp wrapper
|
||||
#
|
||||
# Copyright (c) 2012-2020 Sebastien Rombauts (sebastien.rombauts@gmail.com)
|
||||
# Copyright (c) 2012-2021 Sebastien Rombauts (sebastien.rombauts@gmail.com)
|
||||
#
|
||||
# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
|
||||
# or copy at http://opensource.org/licenses/MIT)
|
||||
@ -16,6 +16,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
# or set them in the cmake command line (see for instance provided build.bat/build.sh scripts)
|
||||
set(SQLITECPP_RUN_CPPCHECK OFF CACHE BOOL "" FORCE)
|
||||
set(SQLITECPP_RUN_CPPLINT OFF CACHE BOOL "" FORCE)
|
||||
set(SQLITECPP_USE_STATIC_RUNTIME OFF CACHE BOOL "" FORCE)
|
||||
add_subdirectory(../.. SQLiteCpp) # out-of-source build requires explicit subdir name for compilation artifacts
|
||||
|
||||
# Add main.cpp example source code to the executable
|
||||
|
Loading…
x
Reference in New Issue
Block a user