Skip to content

Commit 27cde35

Browse files
committed
make sure flatcc-native builds for proper arch
1 parent 177e8cf commit 27cde35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fbs/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ ExternalProject_Add(flatcc-native
1111
URL_HASH SHA512=46ba5ca75facc7d3360dba797d24ae7bfe539a854a48831e1c7b96528cf9594d8bea22b267678fd7c6d742b6636d9e52930987119b4c6b2e38d4abe89b990cae
1212
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
1313
CMAKE_ARGS
14+
-DCMAKE_C_COMPILER=/usr/bin/cc
1415
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
1516
-DBUILD_SHARED_LIBS=OFF
1617
-DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/native
18+
-UCMAKE_TOOLCHAIN_FILE
1719
-DFLATCC_TEST=OFF
1820
-DFLATCC_INSTALL=ON
1921
BUILD_BYPRODUCTS ${FLATCC_EXECUTABLE}

0 commit comments

Comments
 (0)