You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using cmake to build on Windows and VS2019.
sqlpp11 is installed through VCPKG
cmake .. -G"Visual Studio 16 2019" -A Win32 -DCMAKE_TOOLCHAIN_FILE="D:\Tools\vcpkg\scripts\buildsystems\vcpkg.cmake" -DSQLPP11_ODBC_DISABLE_SHARED=ON
results in
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.17763.
-- The CXX compiler identification is MSVC 19.28.29337.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ODBC: C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um
-- Configuring done
CMake Error at CMakeLists.txt:39 (include_directories):
Error evaluating generator expression:
$<TARGET_PROPERTY:sqlpp11,INTERFACE_INCLUDE_DIRECTORIES>
Target "sqlpp11" not found.
When i remove line 39 it works: include_directories(${HinnantDate_INCLUDE_DIR} $<TARGET_PROPERTY:sqlpp11,INTERFACE_INCLUDE_DIRECTORIES>)
The text was updated successfully, but these errors were encountered:
I am using cmake to build on Windows and VS2019.
sqlpp11 is installed through VCPKG
cmake .. -G"Visual Studio 16 2019" -A Win32 -DCMAKE_TOOLCHAIN_FILE="D:\Tools\vcpkg\scripts\buildsystems\vcpkg.cmake" -DSQLPP11_ODBC_DISABLE_SHARED=ON
results in
When i remove line 39 it works:
include_directories(${HinnantDate_INCLUDE_DIR} $<TARGET_PROPERTY:sqlpp11,INTERFACE_INCLUDE_DIRECTORIES>)
The text was updated successfully, but these errors were encountered: