diff --git a/tinygltf/CMakeLists.txt b/tinygltf/CMakeLists.txt index a396717..95513f5 100644 --- a/tinygltf/CMakeLists.txt +++ b/tinygltf/CMakeLists.txt @@ -28,6 +28,7 @@ if (ENABLE_TINYGLTF) BUILD_ALWAYS ${EXT_BUILD_ALWAYS} ${LOG_OPTS} #PATCH_COMMAND ${PATCH_EXECUTABLE};-E;-p1;${PATCH_OPTIONS};-i;${CMAKE_CURRENT_SOURCE_DIR}/tinygltf.patch CMAKE_ARGS + -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DTINYGLTF_BUILD_LOADER_EXAMPLE=OFF ${BUILD_TYPE_SPECIFIER} -DBIN_DIR=${BIN_DIR}