-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example PR on how we add SQLites 3 support in Windows #2329
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2329 +/- ##
========================================
Coverage 91.29% 91.29%
========================================
Files 436 436
Lines 16335 16335
========================================
Hits 14913 14913
Misses 1422 1422 |
This build is OK for merge ✅ |
🔴bert_base_cased_fp16: FAILED: MIGraphX is not within tolerance - check verbose output🔴bert_large_uncased_fp16: FAILED: MIGraphX is not within tolerance - check verbose output🔴distilgpt2_fp16: FAILED: MIGraphX is not within tolerance - check verbose output |
BUILD_COMMAND ${NMAKE_EXECUTABLE} /f ..\\sqlite3\\Makefile.msc USE_AMALGAMATION=1 NO_TCL=1 TOP=..\\sqlite3 libsqlite3.lib | ||
INSTALL_COMMAND "") | ||
|
||
ExternalProject_Get_Property(sqlite3 BINARY_DIR) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Building the dependency should be done in a superproject, not directly in our build scripts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SQLite3 authors do not provide CMake, only configure
scripts for Linux/GNU and NMake files for Windows. Using ExternalProject
is an approved technique for non-CMake compatible dependency projects.
##################################################################################### | ||
|
||
if(NOT WIN32) | ||
find_package(PkgConfig REQUIRED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can probably switch to find_package(SQLite3)
, since we use a cmake build for sqlite.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, we cannot. To use find_package()
, the CMake has to generate config mode files. The CMake from rocm-recipes does not do that.
That PR exemplifies how we have added SQLite3 dependency in CMake.